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.

2 methods override EntityInterface::label()
Entity::label in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements EntityInterface::label().
ViewUI::label in drupal/core/modules/views/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\Entity\EntityInterface::label().

File

drupal/core/lib/Drupal/Core/Entity/EntityInterface.php, line 117
Definition of Drupal\Core\Entity\EntityInterface.

Class

EntityInterface
Defines a common interface for all entity objects.

Namespace

Drupal\Core\Entity

Code

public function label($langcode = NULL);