You are here

public function PathAliasInterface::setPath in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/path_alias/src/PathAliasInterface.php \Drupal\path_alias\PathAliasInterface::setPath()
  2. 9 core/modules/path_alias/src/PathAliasInterface.php \Drupal\path_alias\PathAliasInterface::setPath()

Sets the source path of the alias.

Parameters

string $path: The source path.

Return value

$this

1 method overrides PathAliasInterface::setPath()
PathAlias::setPath in core/modules/path_alias/src/Entity/PathAlias.php
Sets the source path of the alias.

File

core/modules/path_alias/src/PathAliasInterface.php, line 29

Class

PathAliasInterface
Provides an interface defining a path_alias entity.

Namespace

Drupal\path_alias

Code

public function setPath($path);