function DataDefinitionInterface::getLabel
Returns a human readable label.
Return value
string|\Drupal\Core\StringTranslation\TranslatableMarkup|null The label. A string or an instance of TranslatableMarkup will be returned based on the way the label translation is handled. NULL if no label is available.
2 methods override DataDefinitionInterface::getLabel()
- DataDefinition::getLabel in core/
lib/ Drupal/ Core/ TypedData/ DataDefinition.php - FieldConfigBase::getLabel in core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php
File
-
core/
lib/ Drupal/ Core/ TypedData/ DataDefinitionInterface.php, line 65
Class
- DataDefinitionInterface
- Interface for data definitions.
Namespace
Drupal\Core\TypedDataCode
public function getLabel();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.