public static function isAllowedPageType(array $pageRecord, $configurationName = 'pages')
    {
        $isAllowedPageType = false;
        $configurationName = $configurationName ?? 'pages';
        $allowedPageTypes = self::getAllowedPageTypes($pageRecord['uid'], $configurationName);

        if (in_array($pageRecord['doktype'], $allowedPageTypes)) {
            $isAllowedPageType = true;
        }

        return $isAllowedPageType;
    }
public static function isAllowedPageType(array $pageRecord, $configurationName = 'pages')
    {
        $isAllowedPageType = false;
        $configurationName = $configurationName ?? 'pages';
        $allowedPageTypes = self::getAllowedPageTypes($pageRecord['uid'], $configurationName);

        if (in_array($pageRecord['doktype'], $allowedPageTypes)) {
            $isAllowedPageType = true;
        }

        return $isAllowedPageType;
    }
public static function isAllowedPageType ( array $ pageRecord , $ configurationName = 'pages' ) { $ isAllowedPageType = false ; $ configurationName = $ configurationName ?? 'pages' ; $ allowedPageTypes = self :: getAllowedPageTypes ( $ pageRecord [ 'uid' ] , $ configurationName ) ; if ( in_array ( $ pageRecord [ 'doktype' ] , $ allowedPageTypes ) ) { $ isAllowedPageType = true ; } return $ isAllowedPageType ; }
Check if the page type of a page record is allowed

@param array $pageRecord The pages database row
@param string $configurationName The name of the configuration to use.

@return bool TRUE if the page type is allowed, otherwise FALSE
Check if the page type of a page record is allowed