DmitryDulepov\Realurl\Decoder\UrlDecoder::searchPagesByPathOverride PHP Method

searchPagesByPathOverride() protected method

Searches for a match in tx_realurl_pathsegment with override option.
protected searchPagesByPathOverride ( array $possibleSegments ) : DmitryDulepov\Realurl\Cache\PathCacheEntry | null
$possibleSegments array
return DmitryDulepov\Realurl\Cache\PathCacheEntry | null
    protected function searchPagesByPathOverride(array $possibleSegments)
    {
        $result = null;
        $path = implode('/', $possibleSegments);
        $languageExceptionUids = (string) $this->configuration->get('pagePath/languageExceptionUids');
        if ($this->detectedLanguageId > 0 && (empty($languageExceptionUids) || !GeneralUtility::inList($languageExceptionUids, $this->detectedLanguageId))) {
            $result = $this->searchForPathOverrideInPagesLanguageOverlay($path);
        }
        if (!$result) {
            $result = $this->searchForPathOverrideInPages($path);
        }
        return $result;
    }