Commit 2728cbee authored by catch's avatar catch

Issue #2921307 by mpp, hardikpandya, heddn, phenaproxima, geertvd:...

Issue #2921307 by mpp, hardikpandya, heddn, phenaproxima, geertvd: \Drupal\Core\Entity\EntityTypeInterface label methods docblocks should be to return TranslatableMarkup
parent f3f974cf
......@@ -179,7 +179,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
/**
* The human-readable name of the type.
*
* @var string
* @var string|\Drupal\Core\StringTranslation\TranslatableMarkup
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getLabel()
*/
......@@ -188,7 +188,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
/**
* The human-readable label for a collection of entities of the type.
*
* @var string
* @var string|\Drupal\Core\StringTranslation\TranslatableMarkup
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getCollectionLabel()
*/
......@@ -197,7 +197,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
/**
* The indefinite singular name of the type.
*
* @var string
* @var string|\Drupal\Core\StringTranslation\TranslatableMarkup
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getSingularLabel()
*/
......@@ -206,7 +206,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
/**
* The indefinite plural name of the type.
*
* @var string
* @var string|\Drupal\Core\StringTranslation\TranslatableMarkup
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getPluralLabel()
*/
......@@ -217,7 +217,7 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
*
* Needed keys: "singular" and "plural".
*
* @var string[]
* @var string|\Drupal\Core\StringTranslation\TranslatableMarkup
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getCountLabel()
*/
......@@ -237,6 +237,10 @@ class EntityType extends PluginDefinition implements EntityTypeInterface {
/**
* The human-readable name of the entity type group.
*
* @var string|\Drupal\Core\StringTranslation\TranslatableMarkup
*
* @see \Drupal\Core\Entity\EntityTypeInterface::getGroupLabel()
*/
protected $group_label;
......
......@@ -651,7 +651,7 @@ public function getDataTable();
* This label should be used to present a human-readable name of the
* entity type.
*
* @return string
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
* The human-readable name of the entity type.
*/
public function getLabel();
......@@ -674,7 +674,7 @@ public function getLowercaseLabel();
* this is the page title of a page devoted to a collection of entities such
* as "Workflows" (instead of "Workflow entities").
*
* @return string
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
* The collection label.
*/
public function getCollectionLabel();
......@@ -687,7 +687,7 @@ public function getCollectionLabel();
* "opportunities"), "child" (with the plural as "children"), or "content
* item" (with the plural as "content items").
*
* @return string
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
* The singular label.
*/
public function getSingularLabel();
......@@ -700,7 +700,7 @@ public function getSingularLabel();
* "opportunity"), "children" (with the singular as "child"), or "content
* items" (with the singular as "content item").
*
* @return string
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
* The plural label.
*/
public function getPluralLabel();
......@@ -716,7 +716,7 @@ public function getPluralLabel();
* @param int $count
* The item count to display if the plural form was requested.
*
* @return string
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
* The count label.
*/
public function getCountLabel($count);
......@@ -752,7 +752,8 @@ public function getGroup();
/**
* Gets the human-readable name of the entity type group.
*
* @return string
* @return string|\Drupal\Core\StringTranslation\TranslatableMarkup
* The group label.
*/
public function getGroupLabel();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment