Skip to content

Commit

Permalink
Add test for situation where the attribute already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Dec 10, 2023
1 parent 842f593 commit dcffdd9
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

/**
* A basic example action that does nothing.
*
* @Action(
* id = "action_example_basic_action",
* action_label = @Translation("Action Example: A basic example action that does nothing"),
* type = "system"
* )
*/
#[\Drupal\Core\Action\Attribute\Action(id: 'action_example_basic_action', action_label: new Drupal\Core\StringTranslation\TranslatableMarkup('Action Example: A basic example action that does nothing'), type: 'system')]
class BasicExample extends ActionBase implements ContainerFactoryPluginInterface {

}
?>

-----
<?php

/**
* A basic example action that does nothing.
*/
#[\Drupal\Core\Action\Attribute\Action(id: 'action_example_basic_action', action_label: new Drupal\Core\StringTranslation\TranslatableMarkup('Action Example: A basic example action that does nothing'), type: 'system')]
class BasicExample extends ActionBase implements ContainerFactoryPluginInterface {

}
?>

0 comments on commit dcffdd9

Please sign in to comment.