1. 8.3.x core/lib/Drupal/Core/Entity/EntityType.php EntityType::label_callback
  2. 8.0.x core/lib/Drupal/Core/Entity/EntityType.php EntityType::label_callback
  3. 8.1.x core/lib/Drupal/Core/Entity/EntityType.php EntityType::label_callback
  4. 8.2.x core/lib/Drupal/Core/Entity/EntityType.php EntityType::label_callback
  5. 8.4.x core/lib/Drupal/Core/Entity/EntityType.php EntityType::label_callback

The name of a callback that returns the label of the entity.

@todo Remove usages of label_callback https://www.drupal.org/node/2450793.

Type: callable|null

Deprecated

in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0. Use Drupal\Core\Entity\EntityInterface::label() for complex label generation as needed.

See also

\Drupal\Core\Entity\EntityInterface::label()

File

core/lib/Drupal/Core/Entity/EntityType.php, line 119

Class

EntityType
Provides an implementation of an entity type and its metadata.

Namespace

Drupal\Core\Entity

Code

protected $label_callback = NULL;