1. 8.5.x core/modules/action/src/Plugin/migrate/source/Action.php
  2. 8.5.x core/lib/Drupal/Core/Annotation/Action.php
  3. 8.5.x core/modules/system/src/Entity/Action.php
  4. 8.0.x core/lib/Drupal/Core/Annotation/Action.php
  5. 8.0.x core/modules/action/src/Plugin/migrate/source/Action.php
  6. 8.0.x core/modules/system/src/Entity/Action.php
  7. 8.1.x core/modules/action/src/Plugin/migrate/source/Action.php
  8. 8.1.x core/modules/system/src/Entity/Action.php
  9. 8.1.x core/lib/Drupal/Core/Annotation/Action.php
  10. 8.2.x core/modules/action/src/Plugin/migrate/source/Action.php
  11. 8.2.x core/modules/system/src/Entity/Action.php
  12. 8.2.x core/lib/Drupal/Core/Annotation/Action.php
  13. 8.3.x core/modules/system/src/Entity/Action.php
  14. 8.3.x core/lib/Drupal/Core/Annotation/Action.php
  15. 8.3.x core/modules/action/src/Plugin/migrate/source/Action.php
  16. 8.4.x core/lib/Drupal/Core/Annotation/Action.php
  17. 8.4.x core/modules/action/src/Plugin/migrate/source/Action.php
  18. 8.4.x core/modules/system/src/Entity/Action.php
  19. 8.6.x core/modules/action/src/Plugin/migrate/source/Action.php
  20. 8.6.x core/lib/Drupal/Core/Annotation/Action.php
  21. 8.6.x core/modules/system/src/Entity/Action.php

Namespace

Drupal\Core\Annotation

File

core/lib/Drupal/Core/Annotation/Action.php
View source
<?php

namespace Drupal\Core\Annotation;

use Drupal\Component\Annotation\Plugin;

/**
 * Defines an Action annotation object.
 *
 * Plugin Namespace: Plugin\Action
 *
 * For a working example, see \Drupal\node\Plugin\Action\UnpublishNode
 *
 * @see \Drupal\Core\Action\ActionInterface
 * @see \Drupal\Core\Action\ActionManager
 * @see \Drupal\Core\Action\ActionBase
 * @see plugin_api
 *
 * @Annotation
 */
class Action extends Plugin {

  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;

  /**
   * The human-readable name of the action plugin.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

  /**
   * The route name for a confirmation form for this action.
   *
   * @todo Provide a more generic way to allow an action to be confirmed first.
   *
   * @var string (optional)
   */
  public $confirm_form_route_name = '';

  /**
   * The entity type the action can apply to.
   *
   * @todo Replace with \Drupal\Core\Plugin\Context\Context.
   *
   * @var string
   */
  public $type = '';

  /**
   * The category under which the action should be listed in the UI.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $category;

}

Classes

Namesort descending Description
Action Defines an Action annotation object.