public AliasManagerInterface::getAliasByPath($path, $langcode = NULL)
Given a path, return the alias.
string $path: A path.
string $langcode: An optional language code to look up the path in.
string An alias that represents the path, or path if no alias was found.
\InvalidArgumentException Thrown when the path does not start with a slash.
public function getAliasByPath($path, $langcode = NULL);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Path!AliasManagerInterface.php/function/AliasManagerInterface::getAliasByPath/8.1.x