function PathAliasInterface::setAlias

Same name and namespace in other branches
  1. 9 core/modules/path_alias/src/PathAliasInterface.php \Drupal\path_alias\PathAliasInterface::setAlias()
  2. 8.9.x core/modules/path_alias/src/PathAliasInterface.php \Drupal\path_alias\PathAliasInterface::setAlias()
  3. 10 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_alias

Code

public function setAlias($alias);

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