public function PathAlias::label in Drupal 10
Same name and namespace in other branches
- 8 core/modules/path_alias/src/Entity/PathAlias.php \Drupal\path_alias\Entity\PathAlias::label()
- 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\EntityCode
public function label() {
return $this
->getAlias();
}