function AliasRepository::__construct

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Path/AliasRepository.php \Drupal\Core\Path\AliasRepository::__construct()
  2. 10 core/modules/path_alias/src/AliasRepository.php \Drupal\path_alias\AliasRepository::__construct()
  3. 11.x core/modules/path_alias/src/AliasRepository.php \Drupal\path_alias\AliasRepository::__construct()

Constructs an AliasRepository object.

Parameters

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

File

core/modules/path_alias/src/AliasRepository.php, line 27

Class

AliasRepository
Provides the default path alias lookup operations.

Namespace

Drupal\path_alias

Code

public function __construct(Connection $connection) {
    $this->connection = $connection;
}

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