Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::label()
- 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 call to EntityInterface::label()
- Term::getName in core/
modules/ taxonomy/ src/ Entity/ Term.php - Gets the term name.
3 methods override EntityInterface::label()
- EntityBase::label in core/
lib/ Drupal/ Core/ Entity/ EntityBase.php - Gets the label of the entity.
- Media::label in core/
modules/ media/ src/ Entity/ Media.php - Gets the label of the entity.
- PathAlias::label in core/
modules/ path_alias/ src/ Entity/ PathAlias.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\EntityCode
public function label();