Skip to content

Commit

Permalink
Test that plugin discovery annotations with long translatable strings…
Browse files Browse the repository at this point in the history
… are allowed.
  • Loading branch information
pfrenssen committed Jul 19, 2024
1 parent 8739103 commit 01e2500
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Drupal/good/good.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
}

0 comments on commit 01e2500

Please sign in to comment.