You are here

public function AliasStorage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Path/AliasStorage.php \Drupal\Core\Path\AliasStorage::__construct()

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.

File

core/lib/Drupal/Core/Path/AliasStorage.php, line 47
Contains \Drupal\Core\Path\AliasStorage.

Class

AliasStorage
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

public function __construct(Connection $connection, ModuleHandlerInterface $module_handler) {
  $this->connection = $connection;
  $this->moduleHandler = $module_handler;
}