function EntityInterface::label
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::label()
- 10 core/lib/Drupal/Core/Entity/EntityInterface.php \Drupal\Core\Entity\EntityInterface::label()
- 8.9.x 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.
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();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.