function AliasRepositoryInterface::pathHasMatchingAlias

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Path/AliasRepositoryInterface.php \Drupal\Core\Path\AliasRepositoryInterface::pathHasMatchingAlias()
  2. 10 core/modules/path_alias/src/AliasRepositoryInterface.php \Drupal\path_alias\AliasRepositoryInterface::pathHasMatchingAlias()
  3. 11.x core/modules/path_alias/src/AliasRepositoryInterface.php \Drupal\path_alias\AliasRepositoryInterface::pathHasMatchingAlias()

Check if any alias exists starting with $initial_substring.

Parameters

string $initial_substring: Initial system path substring to test against.

Return value

bool TRUE if any alias exists, FALSE otherwise.

1 method overrides AliasRepositoryInterface::pathHasMatchingAlias()
AliasRepository::pathHasMatchingAlias in core/modules/path_alias/src/AliasRepository.php
Check if any alias exists starting with $initial_substring.

File

core/modules/path_alias/src/AliasRepositoryInterface.php, line 79

Class

AliasRepositoryInterface
Provides an interface for path alias lookup operations.

Namespace

Drupal\path_alias

Code

public function pathHasMatchingAlias($initial_substring);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.