protected function extractPath(
        SPIURLAlias $spiUrlAlias,
        $languageCode,
        $showAllTranslations,
        array $prioritizedLanguageList
    ) {
        $pathData = array();
        $pathLevels = count($spiUrlAlias->pathData);

        foreach ($spiUrlAlias->pathData as $level => $levelEntries) {
            if ($level === $pathLevels - 1) {
                $prioritizedLanguageCode = $this->selectAliasLanguageCode(
                    $spiUrlAlias,
                    $languageCode,
                    $showAllTranslations,
                    $prioritizedLanguageList
                );
            } else {
                $prioritizedLanguageCode = $this->choosePrioritizedLanguageCode(
                    $levelEntries,
                    $showAllTranslations,
                    $prioritizedLanguageList
                );
            }

            if ($prioritizedLanguageCode === false) {
                return false;
            }

            $pathData[$level] = $levelEntries['translations'][$prioritizedLanguageCode];
        }

        return implode('/', $pathData);
    }
protected function extractPath(
        SPIURLAlias $spiUrlAlias,
        $languageCode,
        $showAllTranslations,
        array $prioritizedLanguageList
    ) {
        $pathData = array();
        $pathLevels = count($spiUrlAlias->pathData);

        foreach ($spiUrlAlias->pathData as $level => $levelEntries) {
            if ($level === $pathLevels - 1) {
                $prioritizedLanguageCode = $this->selectAliasLanguageCode(
                    $spiUrlAlias,
                    $languageCode,
                    $showAllTranslations,
                    $prioritizedLanguageList
                );
            } else {
                $prioritizedLanguageCode = $this->choosePrioritizedLanguageCode(
                    $levelEntries,
                    $showAllTranslations,
                    $prioritizedLanguageList
                );
            }

            if ($prioritizedLanguageCode === false) {
                return false;
            }

            $pathData[$level] = $levelEntries['translations'][$prioritizedLanguageCode];
        }

        return implode('/', $pathData);
    }
protected function extractPath ( SPIURLAlias $ spiUrlAlias , $ languageCode , $ showAllTranslations , array $ prioritizedLanguageList ) { $ pathData = array ( ) ; $ pathLevels = count ( $ spiUrlAlias -> pathData ) ; foreach ( $ spiUrlAlias -> pathData as $ level => $ levelEntries ) { if ( $ level === $ pathLevels - 1 ) { $ prioritizedLanguageCode = $ this -> selectAliasLanguageCode ( $ spiUrlAlias , $ languageCode , $ showAllTranslations , $ prioritizedLanguageList ) ; } else { $ prioritizedLanguageCode = $ this -> choosePrioritizedLanguageCode ( $ levelEntries , $ showAllTranslations , $ prioritizedLanguageList ) ; } if ( $ prioritizedLanguageCode === false ) { return false ; } $ pathData [ $ level ] = $ levelEntries [ 'translations' ] [ $ prioritizedLanguageCode ] ; } return implode ( '/' , $ pathData ) ; }
Returns path extracted from normalized path data returned from persistence, using language settings.

Will return false if path could not be determined.

@param \eZ\Publish\SPI\Persistence\Content\URLAlias $spiUrlAlias
@param string $languageCode
@param bool $showAllTranslations
@param string[] $prioritizedLanguageList

@return string|bool
Returns path extracted from normalized path data returned from persistence using language settings .