diff --git a/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php b/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php index 33f9db327c7499c3b545903e8de17606a375c900..a4e40944f059b4099202c0374688f1be91b514f5 100644 --- a/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php +++ b/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php @@ -62,8 +62,9 @@ public function getDataType(); /** * Returns a human readable label. * - * @return string - * The label. + * @return 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. */ public function getLabel();