Updated: Comment #44
Problem/Motivation
Since path aliases are now entities, their previous custom storage has also been converted to an entity storage handler and the existing alias storage service has to be deprecated.
Proposed resolution
Deprecate \Drupal\Core\Path\AliasStorage
and its service (path.alias_storage
) in favor of getting the path_alias entity storage handler from the entity type manager.
Remaining tasks
Review the patch.
User interface changes
Nope.
API changes
A few methods from \Drupal\Core\Path\AliasStorageInterface
have been moved as-is to \Drupal\Core\Path\PathAliasStorageInterface
: preloadPathAlias()
, lookupPathAlias()
, lookupPathSource()
and pathHasMatchingAlias()
.
A few methods from \Drupal\Core\Path\AliasStorageInterface
have been deprecated without any replacement: aliasExists()
, languageAliasExists()
and getAliasesForAdminListing()
.