public function LanguageNeutralAliasesStorage::preloadPathAlias in Language neutral aliases 8
Pre-loads path alias information for a given list of source paths.
Parameters
array $preloaded: Paths that need preloading of aliases.
string $langcode: Language code to search the path with. If there's no path defined for that language it will search paths without language.
Return value
string[] Source (keys) to alias (values) mapping.
Overrides AliasStorage::preloadPathAlias
File
- src/
LanguageNeutralAliasesStorage.php, line 74
Class
- LanguageNeutralAliasesStorage
- Language neutral alias storage.
Namespace
Drupal\language_neutral_aliasesCode
public function preloadPathAlias($preloaded, $langcode) {
return parent::preloadPathAlias($preloaded, LanguageInterface::LANGCODE_NOT_SPECIFIED);
}