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;
doc_Drupal
2016-10-29 09:07:53
Comments
Leave a Comment

Please login to continue.