Skip to content
Snippets Groups Projects
Verified Commit 8d3d814c authored by Dave Long's avatar Dave Long
Browse files

Issue #3175012 by anagomes, CurriedN, andregp, ptmkenny, longwave, klausi,...

Issue #3175012 by anagomes, CurriedN, andregp, ptmkenny, longwave, klausi, mglaman, acbramley: Update PHPDoc for DataDefinition

(cherry picked from commit 1ee262ed)
parent 0ad211a5
No related branches found
No related tags found
7 merge requests!8394[warning] array_flip(): Can only flip STRING and INTEGER values, when saving a non-revisionable custom content entity,!7780issue 3443822: fix for 'No route found for the specified format html. Supported formats: json, xml.',!5013Issue #3071143: Table Render Array Example Is Incorrect,!4848Issue #1566662: Update module should send notifications on Thursdays,!4792Issue #2230689: Remove redundant "Italic" style,!4220Issue #3368223: Link field > Access to internal links is not checked on display.,!1459Issue #3087632: menu_name max length is too long
......@@ -78,7 +78,7 @@ public function getLabel() {
/**
* Sets the human-readable label.
*
* @param string $label
* @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label
* The label to set.
*
* @return static
......@@ -99,7 +99,7 @@ public function getDescription() {
/**
* Sets the human-readable description.
*
* @param string $description
* @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description
* The description to set.
*
* @return static
......
......@@ -57,9 +57,10 @@ public function getDataType();
/**
* Returns a human readable label.
*
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
* @return 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.
* based on the way the label translation is handled. NULL if no label is
* available.
*/
public function getLabel();
......@@ -69,8 +70,10 @@ public function getLabel();
* Descriptions are usually used on user interfaces where the data is edited
* or displayed.
*
* @return string|null
* The description, or NULL if no description is available.
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup|null
* The description. A string or an instance of TranslatableMarkup will be
* returned based on the way the description translation is handled. NULL if
* no description is available.
*/
public function getDescription();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment