W3cubDocs

/Drupal 8

public function AliasStorageInterface::pathHasMatchingAlias

public AliasStorageInterface::pathHasMatchingAlias($initial_substring)

Check if any alias exists starting with $initial_substring.

Parameters

string $initial_substring: Initial path substring to test against.

Return value

bool TRUE if any alias exists, FALSE otherwise.

File

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

Class

AliasStorageInterface
Provides a class for CRUD operations on path aliases.

Namespace

Drupal\Core\Path

Code

public function pathHasMatchingAlias($initial_substring);

© 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::pathHasMatchingAlias/8.1.x