3 namespace Drupal\Core\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines an Action annotation object.
10 * Plugin Namespace: Plugin\Action
12 * For a working example, see \Drupal\node\Plugin\Action\UnpublishNode
14 * @see \Drupal\Core\Action\ActionInterface
15 * @see \Drupal\Core\Action\ActionManager
16 * @see \Drupal\Core\Action\ActionBase
21 class Action extends Plugin {
31 * The human-readable name of the action plugin.
33 * @ingroup plugin_translatable
35 * @var \Drupal\Core\Annotation\Translation
40 * The route name for a confirmation form for this action.
42 * @todo Provide a more generic way to allow an action to be confirmed first.
44 * @var string (optional)
46 public $confirm_form_route_name = '';
49 * The entity type the action can apply to.
51 * @todo Replace with \Drupal\Core\Plugin\Context\Context.
58 * The category under which the action should be listed in the UI.
60 * @var \Drupal\Core\Annotation\Translation
62 * @ingroup plugin_translatable