You are here

public function PathAlias::label in Drupal 10

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

Gets the label of the entity.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup|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();
}