Document/Subscriber/ArticleSubscriber.php
private function loadPageDataForShadow(NodeInterface $node, ArticleDocument $document, array $originalPages)
    {
        $pages = $node->getPropertyValueWithDefault(
            $this->propertyEncoder->localizedSystemName(self::PAGES_PROPERTY, $document->getLocale()),
            json_encode([])
        );
        $pages = json_decode($pages, true);

        for ($i = 0; $i < count($originalPages); ++$i) {
            $pages[$i]['routePath'] = $originalPages[$i]['routePath'];
        }

        return $pages;
    }
private function loadPageDataForShadow(NodeInterface $node, ArticleDocument $document, array $originalPages)
    {
        $pages = $node->getPropertyValueWithDefault(
            $this->propertyEncoder->localizedSystemName(self::PAGES_PROPERTY, $document->getLocale()),
            json_encode([])
        );
        $pages = json_decode($pages, true);

        for ($i = 0; $i < count($originalPages); ++$i) {
            $pages[$i]['routePath'] = $originalPages[$i]['routePath'];
        }

        return $pages;
    }
private function loadPageDataForShadow ( NodeInterface $ node , ArticleDocument $ document , array $ originalPages ) { $ pages = $ node -> getPropertyValueWithDefault ( $ this -> propertyEncoder -> localizedSystemName ( self :: PAGES_PROPERTY , $ document -> getLocale ( ) ) , json_encode ( [ ] ) ) ; $ pages = json_decode ( $ pages , true ) ; for ( $ i = 0 ; $ i < count ( $ originalPages ) ; ++ $ i ) { $ pages [ $ i ] [ 'routePath' ] = $ originalPages [ $ i ] [ 'routePath' ] ; } return $ pages ; }
Load `routePath` from current locale into `pageData`.

@param NodeInterface $node
@param ArticleDocument $document
@param array $originalPages

@return array
Load routePath from current locale into pageData .