You are here

protected property EntityType::$label_callback in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Entity/EntityType.php \Drupal\Core\Entity\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 123
Contains \Drupal\Core\Entity\EntityType.

Class

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

Namespace

Drupal\Core\Entity

Code

protected $label_callback = NULL;