Content/PageTreeRouteContentType.php
private function readPage($propertyName, NodeInterface $node)
    {
        $pagePropertyName = $propertyName . '-page';
        if (!$node->hasProperty($pagePropertyName)) {
            return;
        }

        try {
            $pageUuid = $node->getPropertyValue($pagePropertyName, PropertyType::STRING);
        } catch (ItemNotFoundException $exception) {
            return;
        }

        return [
            'uuid' => $pageUuid,
            'path' => $node->getPropertyValueWithDefault($pagePropertyName . '-path', ''),
            'webspace' => $node->getPropertyValueWithDefault($pagePropertyName . '-webspace', null),
        ];
    }
private function readPage($propertyName, NodeInterface $node)
    {
        $pagePropertyName = $propertyName . '-page';
        if (!$node->hasProperty($pagePropertyName)) {
            return;
        }

        try {
            $pageUuid = $node->getPropertyValue($pagePropertyName, PropertyType::STRING);
        } catch (ItemNotFoundException $exception) {
            return;
        }

        return [
            'uuid' => $pageUuid,
            'path' => $node->getPropertyValueWithDefault($pagePropertyName . '-path', ''),
            'webspace' => $node->getPropertyValueWithDefault($pagePropertyName . '-webspace', null),
        ];
    }
private function readPage ( $ propertyName , NodeInterface $ node ) { $ pagePropertyName = $ propertyName . '-page' ; if ( ! $ node -> hasProperty ( $ pagePropertyName ) ) { return ; } try { $ pageUuid = $ node -> getPropertyValue ( $ pagePropertyName , PropertyType :: STRING ) ; } catch ( ItemNotFoundException $ exception ) { return ; } return [ 'uuid' => $ pageUuid , 'path' => $ node -> getPropertyValueWithDefault ( $ pagePropertyName . '-path' , '' ) , 'webspace' => $ node -> getPropertyValueWithDefault ( $ pagePropertyName . '-webspace' , null ) , ] ; }
Read page-information from given node.

@param string $propertyName
@param NodeInterface $node

@return array
Read page - information from given node .