You are here

public function PathAlias::getPath in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::getPath()

Gets the source path of the alias.

Return value

string The source path.

Overrides PathAliasInterface::getPath

1 call to PathAlias::getPath()
PathAlias::postSave in core/modules/path_alias/src/Entity/PathAlias.php
Acts on a saved entity before the insert or update hook is invoked.

File

core/modules/path_alias/src/Entity/PathAlias.php, line 131

Class

PathAlias
Defines the path_alias entity class.

Namespace

Drupal\path_alias\Entity

Code

public function getPath() {
  return $this
    ->get('path')->value;
}