Language URL prefixes.
Return value
array List of prefixes.
1 call to PathProcessor::getLanguageUrlPrefixes()
- PathProcessor::getPath dans src/
PathProcessor.php - Helper function to handle multilingual paths.
Fichier
-
src/
PathProcessor.php, line 307
Classe
- PathProcessor
- Processes the inbound path using path alias lookups.
Namespace
Drupal\subpathautoCode
protected function getLanguageUrlPrefixes() {
$config = $this->configFactory
->get('language.negotiation')
->get('url');
if (isset($config['prefixes']) && $config['source'] == LanguageNegotiationUrl::CONFIG_PATH_PREFIX) {
return $config['prefixes'];
}
return [];
}