public function AliasStorageInterface::aliasExists

public AliasStorageInterface::aliasExists($alias, $langcode, $source = NULL)

Checks if alias already exists.

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

Parameters

string $alias: Alias to check against.

string $langcode: Language of the alias.

string|null $source: (optional) Path that alias is to be assigned to.

Return value

bool TRUE if alias already exists and FALSE otherwise.

File

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

Class

AliasStorageInterface
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

public function aliasExists($alias, $langcode, $source = 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!AliasStorageInterface.php/function/AliasStorageInterface::aliasExists/8.1.x