public function AliasManagerInterface::getPathAlias

Given an internal Drupal path, return the alias set by the administrator.

Parameters

$path: An internal Drupal path.

$path_language: An optional language code to look up the path in.

Return value

An aliased path if one was found, or the original path if no alias was found.

2 methods override AliasManagerInterface::getPathAlias()

File

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

Class

AliasManagerInterface

Namespace

Drupal\Core\Path

Code

public function getPathAlias($path, $path_language = NULL);