You are here

public function PathAlias::label 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::label()

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides ContentEntityBase::label

File

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

Class

PathAlias
Defines the path_alias entity class.

Namespace

Drupal\path_alias\Entity

Code

public function label() {
  return $this
    ->getAlias();
}