FluidTYPO3\Vhs\ViewHelpers\Condition\Page\IsChildPageViewHelper::evaluateCondition PHP Method

evaluateCondition() protected static method

protected static evaluateCondition ( array $arguments = null ) : boolean
$arguments array
return boolean
    protected static function evaluateCondition($arguments = null)
    {
        $pageUid = $arguments['pageUid'];
        $respectSiteRoot = $arguments['respectSiteRoot'];
        if (null === $pageUid || true === empty($pageUid) || 0 === intval($pageUid)) {
            $pageUid = $GLOBALS['TSFE']->id;
        }
        $pageSelect = new PageRepository();
        $page = $pageSelect->getPage($pageUid);
        if ($respectSiteRoot && isset($page['is_siteroot']) && $page['is_siteroot']) {
            return false;
        }
        return true === isset($page['pid']) && 0 < $page['pid'];
    }