function AliasStorage::getPathAliasEntityStorage

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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.