Defines an Action annotation object.
Expanded class hierarchy of Action
\Drupal\Core\Action\ActionInterface
\Drupal\Core\Action\ActionManager
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 path for a confirmation form for this action.
*
* @todo Change this to accept a route.
* @todo Provide a more generic way to allow an action to be confirmed first.
*
* @var string (optional)
*/
public $confirm_form_path = '';
/**
* The entity type the action can apply to.
*
* @todo Replace with \Drupal\Core\Plugin\Context\Context.
*
* @var string
*/
public $type = '';
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Action:: |
public | property | The path for a confirmation form for this action. | |
Action:: |
public | property | The plugin ID. | |
Action:: |
public | property | The human-readable name of the action plugin. | |
Action:: |
public | property | The entity type the action can apply to. | |
Plugin:: |
protected | property | The plugin definiton read from the class annotation. | |
Plugin:: |
public | function |
Implements Drupal\Core\Annotation\AnnotationInterface::get(). Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function | Constructs a Plugin object. |