From 01e25001f0a6c2407fc191cf5f3c3f2f107bd66b Mon Sep 17 00:00:00 2001 From: Pieter Frenssen Date: Fri, 19 Jul 2024 16:54:47 +0300 Subject: [PATCH] Test that plugin discovery annotations with long translatable strings are allowed. --- tests/Drupal/good/good.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/Drupal/good/good.php b/tests/Drupal/good/good.php index 3c9ecacb..e820619f 100644 --- a/tests/Drupal/good/good.php +++ b/tests/Drupal/good/good.php @@ -1887,3 +1887,15 @@ public function foo() { '#empty' => $this->t('No strings available.'), '#attributes' => ['class' => ['locale-translate-edit-table']], ]; + +/** + * Plugin discovery annotations with long translatable strings are allowed. + * + * @Plugin( + * id = "aggregator", + * title = @Translation("Default fetcher"), + * description = @Translation("Downloads data from a URL using Drupal's HTTP request handler."), + * ) + */ +class DefaultFetcher implements FetcherInterface { +}