public function AliasRepositoryInterface::lookupBySystemPath in Drupal 9
Searches a path alias for a given Drupal system path.
The default implementation performs case-insensitive matching on the 'path' and 'alias' strings.
Parameters
string $path: The system 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
array|null An array containing the 'id', 'path', 'alias' and 'langcode' properties of a path alias, or NULL if none was found.
1 method overrides AliasRepositoryInterface::lookupBySystemPath()
- AliasRepository::lookupBySystemPath in core/
modules/ path_alias/ src/ AliasRepository.php - Searches a path alias for a given Drupal system path.
File
- core/
modules/ path_alias/ src/ AliasRepositoryInterface.php, line 50
Class
- AliasRepositoryInterface
- Provides an interface for path alias lookup operations.
Namespace
Drupal\path_aliasCode
public function lookupBySystemPath($path, $langcode);