diff --git a/core/lib/Drupal/Core/Annotation/Translation.php b/core/lib/Drupal/Core/Annotation/Translation.php index 0d6acd1..d8bd8a7 100644 --- a/core/lib/Drupal/Core/Annotation/Translation.php +++ b/core/lib/Drupal/Core/Annotation/Translation.php @@ -12,10 +12,11 @@ /** * Defines a translatable annotation object. * - * Some metadata within an annotation needs to be translatable. This class - * supports that need by allowing both the translatable string and, if - * specified, a context for that string. This class is essentially a wrapper - * around the traditional t() function in drupal. + * @defgroup translatable Translatable plugin annotations + * Some metadata within an annotation needs to be translatable. This class + * supports that need by allowing both the translatable string and, if + * specified, a context for that string. This class is essentially a wrapper + * around the traditional t() function in drupal. * * @Annotation */ diff --git a/core/lib/Drupal/Core/Entity/Annotation/EntityType.php b/core/lib/Drupal/Core/Entity/Annotation/EntityType.php index 0487d03..6a719bd 100644 --- a/core/lib/Drupal/Core/Entity/Annotation/EntityType.php +++ b/core/lib/Drupal/Core/Entity/Annotation/EntityType.php @@ -94,14 +94,18 @@ class EntityType extends Plugin { /** * The human-readable name of the type. * - * @var string + * @ingroup translatable + * + * @var \Drupal\Core\Annotation\Translation */ public $label; /** * The human-readable name of the entity bundles, e.g. Vocabulary. * - * @var string + * @ingroup translatable + * + * @var \Drupal\Core\Annotation\Translation */ public $bundle_label;