private function checkCacheContentEvent($check_status = true)
    {
        // Checks if a service cache-control exists
        if (null === $this->cache_content) {
            return false;
        }

        // Checks if the target event is not a main contentset
        if (
            $this->object instanceof ContentSet
            && true === is_array($this->object->getPages())
            && 0 < $this->object->getPages()->count()
        ) {
            return false;
        }

        return true === $check_status ? $this->validator->isValid('cache_status', $this->object) : true;
    }
private function checkCacheContentEvent($check_status = true)
    {
        // Checks if a service cache-control exists
        if (null === $this->cache_content) {
            return false;
        }

        // Checks if the target event is not a main contentset
        if (
            $this->object instanceof ContentSet
            && true === is_array($this->object->getPages())
            && 0 < $this->object->getPages()->count()
        ) {
            return false;
        }

        return true === $check_status ? $this->validator->isValid('cache_status', $this->object) : true;
    }
private function checkCacheContentEvent ( $ check_status = true ) { // Checks if a service cache-control exists if ( null === $ this -> cache_content ) { return false ; } // Checks if the target event is not a main contentset if ( $ this -> object instanceof ContentSet && true === is_array ( $ this -> object -> getPages ( ) ) && 0 < $ this -> object -> getPages ( ) -> count ( ) ) { return false ; } return true === $ check_status ? $ this -> validator -> isValid ( 'cache_status' , $ this -> object ) : true ; }
Checks the event and system validity then returns the content target, FALSE otherwise.

@param \BackBee\Event\Event $event
@param bool                 $check_status

@return bool
Checks the event and system validity then returns the content target FALSE otherwise .