public function LanguageNeutralAliasesStorage::lookupPathAlias in Language neutral aliases 8
Returns an alias of Drupal system URL.
The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.
Parameters
string $path: The path to investigate for corresponding path 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|false A path alias, or FALSE if no path was found.
Overrides AliasStorage::lookupPathAlias
File
- src/
LanguageNeutralAliasesStorage.php, line 81
Class
- LanguageNeutralAliasesStorage
- Language neutral alias storage.
Namespace
Drupal\language_neutral_aliasesCode
public function lookupPathAlias($path, $langcode) {
return parent::lookupPathAlias($path, LanguageInterface::LANGCODE_NOT_SPECIFIED);
}