AliasRepositoryInterface.php

Same filename in this branch
  1. 8.9.x core/lib/Drupal/Core/Path/AliasRepositoryInterface.php
Same filename in other branches
  1. 9 core/modules/path_alias/src/AliasRepositoryInterface.php
  2. 10 core/modules/path_alias/src/AliasRepositoryInterface.php
  3. 11.x core/modules/path_alias/src/AliasRepositoryInterface.php

Namespace

Drupal\path_alias

File

core/modules/path_alias/src/AliasRepositoryInterface.php

View source
<?php

namespace Drupal\path_alias;

use Drupal\Core\Path\AliasRepositoryInterface as CoreAliasRepositoryInterface;

/**
 * Provides an interface for path alias lookup operations.
 *
 * The path alias repository service is only used internally in order to
 * optimize alias lookup queries needed in the critical path of each request.
 * However, it is not marked as an internal service because alternative storage
 * backends still need to override it if they provide a different storage class
 * for the PathAlias entity type.
 *
 * Whenever you need to determine whether an alias exists for a system path, or
 * whether a system path has an alias, the 'path_alias.manager' service should
 * be used instead.
 */
interface AliasRepositoryInterface extends CoreAliasRepositoryInterface {

}

Interfaces

Title Deprecated Summary
AliasRepositoryInterface Provides an interface for path alias lookup operations.

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