diff --git a/core/lib/Drupal/Core/Annotation/Translation.php b/core/lib/Drupal/Core/Annotation/Translation.php index a2020df..9af350e 100644 --- a/core/lib/Drupal/Core/Annotation/Translation.php +++ b/core/lib/Drupal/Core/Annotation/Translation.php @@ -19,8 +19,11 @@ * annotation, wrap translatable strings in the @ Translation() annotation. * For example: * @code - * title = @Translation("Title of the plugin"), + * title = @ Translation("Title of the plugin"), * @endcode + * Remove spaces after @ in your actual plugin - these are put into this sample + * code so that it is not recognized as annotation. + * * You will also need to make sure that your class file includes the line: * @code * use Drupal\Core\Annotation\Translation;