function DataDefinitionInterface::getLabel

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::getLabel()
  2. 10 core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::getLabel()
  3. 11.x core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php \Drupal\Core\TypedData\DataDefinitionInterface::getLabel()

Returns a human readable label.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup The label. A string or an instance of TranslatableMarkup will be returned based on the way the label translation is handled.

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 64

Class

DataDefinitionInterface
Interface for data definitions.

Namespace

Drupal\Core\TypedData

Code

public function getLabel();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.