You are here

public function EntityInterface::label in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::label()
  2. 9 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::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.

1 method overrides EntityInterface::label()
ViewUI::label in core/modules/views_ui/src/ViewUI.php
Gets the label of the entity.

File

core/lib/Drupal/Core/Entity/EntityInterface.php, line 96

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function label();