public function AliasStorageInterface::lookupPathSource

public AliasStorageInterface::lookupPathSource($path, $langcode)

Returns Drupal system URL of an alias.

The default implementation performs case-insensitive matching on the 'source' and 'alias' strings.

Parameters

string $path: The path to investigate for corresponding system URLs.

string $langcode: Language code to search the path with. If there's no path defined for that language it will search paths without language.

Return value

string|false A Drupal system path, or FALSE if no path was found.

File

core/lib/Drupal/Core/Path/AliasStorageInterface.php, line 115

Class

AliasStorageInterface
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

public function lookupPathSource($path, $langcode);

© 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!AliasStorageInterface.php/function/AliasStorageInterface::lookupPathSource/8.1.x