Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::getLabel()
- 9 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\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 - Returns a human readable label.
- FieldConfigBase::getLabel in core/
lib/ Drupal/ Core/ Field/ FieldConfigBase.php - Returns a human readable label.
File
- core/
lib/ Drupal/ Core/ TypedData/ DataDefinitionInterface.php, line 65
Class
- DataDefinitionInterface
- Interface for data definitions.
Namespace
Drupal\Core\TypedDataCode
public function getLabel();