src/Sulu/Component/Content/Repository/ContentRepository.php
private function resolveUrl(Row $row, $locale)
    {
        if (WorkflowStage::PUBLISHED !== $this->resolveProperty($row, $locale . 'State', $locale)) {
            return;
        }

        $template = $this->resolveProperty($row, 'template', $locale);
        if (empty($template)) {
            return;
        }

        $structure = $this->structureManager->getStructure($template);
        if (!$structure || !$structure->hasTag('sulu.rlp')) {
            return;
        }

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

        return $this->resolveProperty($row, $propertyName, $locale);
    }
private function resolveUrl(Row $row, $locale)
    {
        if (WorkflowStage::PUBLISHED !== $this->resolveProperty($row, $locale . 'State', $locale)) {
            return;
        }

        $template = $this->resolveProperty($row, 'template', $locale);
        if (empty($template)) {
            return;
        }

        $structure = $this->structureManager->getStructure($template);
        if (!$structure || !$structure->hasTag('sulu.rlp')) {
            return;
        }

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

        return $this->resolveProperty($row, $propertyName, $locale);
    }
private function resolveUrl ( Row $ row , $ locale ) { if ( WorkflowStage :: PUBLISHED !== $ this -> resolveProperty ( $ row , $ locale . 'State' , $ locale ) ) { return ; } $ template = $ this -> resolveProperty ( $ row , 'template' , $ locale ) ; if ( empty ( $ template ) ) { return ; } $ structure = $ this -> structureManager -> getStructure ( $ template ) ; if ( ! $ structure || ! $ structure -> hasTag ( 'sulu.rlp' ) ) { return ; } $ propertyName = $ structure -> getPropertyByTagName ( 'sulu.rlp' ) -> getName ( ) ; return $ this -> resolveProperty ( $ row , $ propertyName , $ locale ) ; }
Resolve url property.

@param Row $row
@param string $locale

@return string
Resolve url property .