public function PathAliasInterface::setAlias in Drupal 10
Same name and namespace in other branches
- 8 core/modules/path_alias/src/PathAliasInterface.php \Drupal\path_alias\PathAliasInterface::setAlias()
- 9 core/modules/path_alias/src/PathAliasInterface.php \Drupal\path_alias\PathAliasInterface::setAlias()
Sets the alias for this path.
Parameters
string $alias: The path alias.
Return value
$this
1 method overrides PathAliasInterface::setAlias()
- PathAlias::setAlias in core/
modules/ path_alias/ src/ Entity/ PathAlias.php - Sets the alias for this path.
File
- core/
modules/ path_alias/ src/ PathAliasInterface.php, line 47
Class
- PathAliasInterface
- Provides an interface defining a path_alias entity.
Namespace
Drupal\path_aliasCode
public function setAlias($alias);