public function AliasStorageInterface::aliasExists in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Path/AliasStorageInterface.php \Drupal\Core\Path\AliasStorageInterface::aliasExists()
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.
1 method overrides AliasStorageInterface::aliasExists()
- AliasStorage::aliasExists in core/
lib/ Drupal/ Core/ Path/ AliasStorage.php - Checks if alias already exists.
File
- core/
lib/ Drupal/ Core/ Path/ AliasStorageInterface.php, line 138 - Contains \Drupal\Core\Path\AliasStorageInterface.
Class
- AliasStorageInterface
- Provides a class for CRUD operations on path aliases.
Namespace
Drupal\Core\PathCode
public function aliasExists($alias, $langcode, $source = NULL);