Skip to content
Snippets Groups Projects
Verified Commit 5e7f1ca6 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 cabb82dd
No related branches found
No related tags found
4 merge requests!8506Draft: Issue #3456536 by ibrahim tameme,!5646Issue #3350972 by nod_: [random test failure]...,!5600Issue #3350972 by nod_: [random test failure]...,!5343Issue #3305066 by quietone, Rename RedirectLeadingSlashesSubscriber
...@@ -78,7 +78,7 @@ public function getLabel() { ...@@ -78,7 +78,7 @@ public function getLabel() {
/** /**
* Sets the human-readable label. * Sets the human-readable label.
* *
* @param string $label * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $label
* The label to set. * The label to set.
* *
* @return static * @return static
...@@ -99,7 +99,7 @@ public function getDescription() { ...@@ -99,7 +99,7 @@ public function getDescription() {
/** /**
* Sets the human-readable description. * Sets the human-readable description.
* *
* @param string $description * @param string|\Drupal\Core\StringTranslation\TranslatableMarkup $description
* The description to set. * The description to set.
* *
* @return static * @return static
......
...@@ -57,9 +57,10 @@ public function getDataType(); ...@@ -57,9 +57,10 @@ public function getDataType();
/** /**
* Returns a human readable label. * 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 * 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(); public function getLabel();
...@@ -69,8 +70,10 @@ public function getLabel(); ...@@ -69,8 +70,10 @@ public function getLabel();
* Descriptions are usually used on user interfaces where the data is edited * Descriptions are usually used on user interfaces where the data is edited
* or displayed. * or displayed.
* *
* @return string|null * @return string|\Drupal\Core\StringTranslation\TranslatableMarkup|null
* The description, or NULL if no description is available. * 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(); public function getDescription();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment