interface AliasRepositoryInterface
Same name in this branch
- 8.9.x core/lib/Drupal/Core/Path/AliasRepositoryInterface.php \Drupal\Core\Path\AliasRepositoryInterface
Same name in other branches
- 9 core/modules/path_alias/src/AliasRepositoryInterface.php \Drupal\path_alias\AliasRepositoryInterface
- 10 core/modules/path_alias/src/AliasRepositoryInterface.php \Drupal\path_alias\AliasRepositoryInterface
- 11.x core/modules/path_alias/src/AliasRepositoryInterface.php \Drupal\path_alias\AliasRepositoryInterface
Provides an interface for path alias lookup operations.
The path alias repository service is only used internally in order to optimize alias lookup queries needed in the critical path of each request. However, it is not marked as an internal service because alternative storage backends still need to override it if they provide a different storage class for the PathAlias entity type.
Whenever you need to determine whether an alias exists for a system path, or whether a system path has an alias, the 'path_alias.manager' service should be used instead.
Hierarchy
- interface \Drupal\Core\Path\AliasRepositoryInterface
- interface \Drupal\path_alias\AliasRepositoryInterface extends \Drupal\Core\Path\AliasRepositoryInterface
Expanded class hierarchy of AliasRepositoryInterface
All classes that implement AliasRepositoryInterface
2 files declare their use of AliasRepositoryInterface
- AliasManagerTest.php in core/
modules/ path_alias/ tests/ src/ Unit/ AliasManagerTest.php - DeprecatedClassesTest.php in core/
modules/ path_alias/ tests/ src/ Unit/ DeprecatedClassesTest.php
File
-
core/
modules/ path_alias/ src/ AliasRepositoryInterface.php, line 20
Namespace
Drupal\path_aliasView source
interface AliasRepositoryInterface extends CoreAliasRepositoryInterface {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.