function PathAlias::getAlias

Same name in other branches
  1. 9 core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::getAlias()
  2. 8.9.x core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::getAlias()
  3. 11.x core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::getAlias()

Overrides PathAliasInterface::getAlias

2 calls to PathAlias::getAlias()
PathAlias::label in core/modules/path_alias/src/Entity/PathAlias.php
PathAlias::preSave in core/modules/path_alias/src/Entity/PathAlias.php

File

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

Class

PathAlias
Defines the path_alias entity class.

Namespace

Drupal\path_alias\Entity

Code

public function getAlias() {
    return $this->get('alias')->value;
}

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