public function AliasUniquifierInterface::uniquify in Pathauto 8
Check to ensure a path alias is unique and add suffix variants if necessary.
Given an alias 'content/test' if a path alias with the exact alias already exists, the function will change the alias to 'content/test-0' and will increase the number suffix until it finds a unique alias.
Parameters
string $alias: A string with the alias. Can be altered by reference.
string $source: A string with the path source.
string $langcode: A string with a language code.
1 method overrides AliasUniquifierInterface::uniquify()
- AliasUniquifier::uniquify in src/
AliasUniquifier.php - Check to ensure a path alias is unique and add suffix variants if necessary.
File
- src/
AliasUniquifierInterface.php, line 26
Class
- AliasUniquifierInterface
- Provides an interface for alias uniquifiers.
Namespace
Drupal\pathautoCode
public function uniquify(&$alias, $source, $langcode);