You are here

public function AliasRepository::__construct in Drupal 9

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