8.3.x EntityInterface.php public EntityInterface::label()
8.0.x EntityInterface.php public EntityInterface::label()
8.1.x EntityInterface.php public EntityInterface::label()
8.2.x EntityInterface.php public EntityInterface::label()
8.4.x EntityInterface.php public EntityInterface::label()

Gets the label of the entity.

Return value

string|null The label of the entity, or NULL if there is no label defined.

Overrides EntityInterface::label

3 methods override EntityInterface::label()
Entity::label in core/lib/Drupal/Core/Entity/Entity.php
Gets the label of the entity.
EntityInterface::label in core/lib/Drupal/Core/Entity/EntityInterface.php
Gets the label of the entity.
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();