interface AliasManagerInterface

Hierarchy

Expanded class hierarchy of AliasManagerInterface

All classes that implement AliasManagerInterface

5 files declare their use of AliasManagerInterface
AliasManagerCacheDecorator.php in drupal/core/lib/Drupal/Core/CacheDecorator/AliasManagerCacheDecorator.php
Contains Drupal\Core\CacheDecorator\AliasManagerCacheDecorator.
MenuLinkFormController.php in drupal/core/modules/menu_link/lib/Drupal/menu_link/MenuLinkFormController.php
Contains \Drupal\menu_link\MenuLinkFormController.
MockAliasManager.php in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/MockAliasManager.php
Contains Drupal\system\Tests\Routing\MockAliasManager.
PathProcessorAlias.php in drupal/core/lib/Drupal/Core/PathProcessor/PathProcessorAlias.php
Contains \Drupal\Core\PathProcessor\PathProcessorAlias.
SiteInformationForm.php in drupal/core/modules/system/lib/Drupal/system/Form/SiteInformationForm.php
Contains \Drupal\system\Form\SiteInformationForm.

File

drupal/core/lib/Drupal/Core/Path/AliasManagerInterface.php, line 10
Contains Drupal\Core\Path\AliasManagerInterface.

Namespace

Drupal\Core\Path
View source
interface AliasManagerInterface {

  /**
   * Given a path alias, return the internal path it represents.
   *
   * @param $path
   *   A Drupal path alias.
   * @param $path_language
   *   An optional language code to look up the path in.
   *
   * @return
   *   The internal path represented by the alias, or the original alias if no
   *   internal path was found.
   */
  public function getSystemPath($path, $path_language = NULL);

  /**
   * Given an internal Drupal path, return the alias set by the administrator.
   *
   * @param $path
   *   An internal Drupal path.
   *
   * @param $path_language
   *   An optional language code to look up the path in.
   *
   * @return
   *   An aliased path if one was found, or the original path if no alias was
   *   found.
   */
  public function getPathAlias($path, $path_language = NULL);

  /**
   * Returns an array of system paths that have been looked up.
   *
   * @return array
   *   An array of all system paths that have been looked up during the current
   *   request.
   */
  public function getPathLookups();

  /**
   * Preload a set of paths for bulk alias lookups.
   *
   * @param $path_list
   *   An array of system paths.
   */
  public function preloadPathLookups(array $path_list);

}

Members

Namesort descending Modifiers Type Description Overrides
AliasManagerInterface::getPathAlias public function Given an internal Drupal path, return the alias set by the administrator. 3
AliasManagerInterface::getPathLookups public function Returns an array of system paths that have been looked up. 3
AliasManagerInterface::getSystemPath public function Given a path alias, return the internal path it represents. 3
AliasManagerInterface::preloadPathLookups public function Preload a set of paths for bulk alias lookups. 3