protected function validateCmsObject($name)
    {
        if ($name === $this->obj->getFilePath()) {
            return true;
        }

        if ($fallbackObj = $this->findFallbackObject($name)) {
            $this->obj = $fallbackObj;
            return true;
        }

        return false;
    }
protected function validateCmsObject($name)
    {
        if ($name === $this->obj->getFilePath()) {
            return true;
        }

        if ($fallbackObj = $this->findFallbackObject($name)) {
            $this->obj = $fallbackObj;
            return true;
        }

        return false;
    }
protected function validateCmsObject ( $ name ) { if ( $ name === $ this -> obj -> getFilePath ( ) ) { return true ; } if ( $ fallbackObj = $ this -> findFallbackObject ( $ name ) ) { $ this -> obj = $ fallbackObj ; return true ; } return false ; }
Internal method that checks if the template name matches
the loaded object, with fallback support to partials.

@return bool
Internal method that checks if the template name matches the loaded object with fallback support to partials .