src/Sulu/Component/Content/Repository/ContentRepository.php
private function appendUrlMapping(QueryBuilder $queryBuilder, $locales)
    {
        $structures = $this->structureManager->getStructures(Structure::TYPE_PAGE);
        $urlNames = [];

        foreach ($structures as $structure) {
            if (!$structure->hasTag('sulu.rlp')) {
                continue;
            }

            $propertyName = $structure->getPropertyByTagName('sulu.rlp')->getName();

            if (!in_array($propertyName, $urlNames)) {
                $this->appendSingleMapping($queryBuilder, $propertyName, $locales);
                $urlNames[] = $propertyName;
            }
        }
    }
private function appendUrlMapping(QueryBuilder $queryBuilder, $locales)
    {
        $structures = $this->structureManager->getStructures(Structure::TYPE_PAGE);
        $urlNames = [];

        foreach ($structures as $structure) {
            if (!$structure->hasTag('sulu.rlp')) {
                continue;
            }

            $propertyName = $structure->getPropertyByTagName('sulu.rlp')->getName();

            if (!in_array($propertyName, $urlNames)) {
                $this->appendSingleMapping($queryBuilder, $propertyName, $locales);
                $urlNames[] = $propertyName;
            }
        }
    }
private function appendUrlMapping ( QueryBuilder $ queryBuilder , $ locales ) { $ structures = $ this -> structureManager -> getStructures ( Structure :: TYPE_PAGE ) ; $ urlNames = [ ] ; foreach ( $ structures as $ structure ) { if ( ! $ structure -> hasTag ( 'sulu.rlp' ) ) { continue ; } $ propertyName = $ structure -> getPropertyByTagName ( 'sulu.rlp' ) -> getName ( ) ; if ( ! in_array ( $ propertyName , $ urlNames ) ) { $ this -> appendSingleMapping ( $ queryBuilder , $ propertyName , $ locales ) ; $ urlNames [ ] = $ propertyName ; } } }
Append mapping for url to given query-builder.

@param QueryBuilder $queryBuilder
@param string[] $locales
Append mapping for url to given query - builder .