src/Sulu/Component/Content/Query/ContentQueryBuilder.php
private function buildSelectForStructure($locale, StructureInterface $structure, &$names)
    {
        $nodeNameProperty = $structure->getProperty('title');
        $result = '';

        $name = $this->getTranslatedProperty($nodeNameProperty, $locale)->getName();
        if (!in_array($name, $names)) {
            $names[] = $name;
            $result .= ', ' . $this->buildSelector($name);
        }

        if ($structure->hasTag('sulu.rlp')) {
            $urlProperty = $structure->getPropertyByTagName('sulu.rlp');
            $name = $this->getTranslatedProperty($urlProperty, $locale)->getName();

            if ('resource_locator' !== $urlProperty->getContentTypeName() && !in_array($name, $names)) {
                $names[] = $name;
                $result .= ', ' . $this->buildSelector($name);
            }
        }

        return $result;
    }
private function buildSelectForStructure($locale, StructureInterface $structure, &$names)
    {
        $nodeNameProperty = $structure->getProperty('title');
        $result = '';

        $name = $this->getTranslatedProperty($nodeNameProperty, $locale)->getName();
        if (!in_array($name, $names)) {
            $names[] = $name;
            $result .= ', ' . $this->buildSelector($name);
        }

        if ($structure->hasTag('sulu.rlp')) {
            $urlProperty = $structure->getPropertyByTagName('sulu.rlp');
            $name = $this->getTranslatedProperty($urlProperty, $locale)->getName();

            if ('resource_locator' !== $urlProperty->getContentTypeName() && !in_array($name, $names)) {
                $names[] = $name;
                $result .= ', ' . $this->buildSelector($name);
            }
        }

        return $result;
    }
private function buildSelectForStructure ( $ locale , StructureInterface $ structure , & $ names ) { $ nodeNameProperty = $ structure -> getProperty ( 'title' ) ; $ result = '' ; $ name = $ this -> getTranslatedProperty ( $ nodeNameProperty , $ locale ) -> getName ( ) ; if ( ! in_array ( $ name , $ names ) ) { $ names [ ] = $ name ; $ result .= ', ' . $ this -> buildSelector ( $ name ) ; } if ( $ structure -> hasTag ( 'sulu.rlp' ) ) { $ urlProperty = $ structure -> getPropertyByTagName ( 'sulu.rlp' ) ; $ name = $ this -> getTranslatedProperty ( $ urlProperty , $ locale ) -> getName ( ) ; if ( 'resource_locator' !== $ urlProperty -> getContentTypeName ( ) && ! in_array ( $ name , $ names ) ) { $ names [ ] = $ name ; $ result .= ', ' . $ this -> buildSelector ( $ name ) ; } } return $ result ; }
Returns select of a single structure with title and url selector.
Returns select of a single structure with title and url selector .