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; }