You are here

public function AliasStorage::__construct in Drupal 8

Constructs a Path CRUD object.

Parameters

\Drupal\Core\Database\Connection $connection: A database connection for reading and writing path aliases.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

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

Class

AliasStorage
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

public function __construct(Connection $connection, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager = NULL) {
  $this->connection = $connection;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager ?: \Drupal::entityTypeManager();
}