public function EntityInterface::label

Returns the label of the entity.

Parameters

$langcode: (optional) The language code of the language that should be used for getting the label. If set to NULL, the entity's default language is used.

Return value

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

3 methods override EntityInterface::label()

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 127
Contains \Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function label($langcode = NULL);