W3cubDocs

/Drupal 8

protected property 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;

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityType.php/property/EntityType::label_callback/8.1.x