EntityType::$label_callback
The name of a callback that returns the label of the entity.
Type: callable|null
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Override the EntityInterface::label() method instead for dynamic labels.
See also
\Drupal\Core\Entity\EntityInterface::label()
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityType.php, line 104
Class
- EntityType
- Provides an implementation of an entity type and its metadata.
Namespace
Drupal\Core\EntityCode
protected $label_callback = NULL;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.