You are here

public function PathAliasInterface::setAlias in Drupal 8

Same name and namespace in other branches
  1. 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_alias

Code

public function setAlias($alias);