You are here

protected function AliasStorage::getPathAliasEntityStorage in Drupal 8

Returns the path alias entity storage handler.

We can not store it in the constructor because that leads to a circular dependency in the service container.

Return value

\Drupal\Core\Entity\EntityStorageInterface The path alias entity storage.

1 call to AliasStorage::getPathAliasEntityStorage()
AliasStorage::delete in core/lib/Drupal/Core/Path/AliasStorage.php
Deletes a URL alias.

File

core/lib/Drupal/Core/Path/AliasStorage.php, line 352

Class

AliasStorage
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

protected function getPathAliasEntityStorage() {
  return $this->entityTypeManager
    ->getStorage('path_alias');
}