class Action in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Annotation/Action.php \Drupal\Core\Annotation\Action
- 8 core/modules/system/src/Entity/Action.php \Drupal\system\Entity\Action
- 8 core/modules/action/src/Plugin/migrate/source/d6/Action.php \Drupal\action\Plugin\migrate\source\d6\Action
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Annotation/Action.php \Drupal\Core\Annotation\Action
Defines an Action annotation object.
Plugin Namespace: Plugin\Action
For a working example, see \Drupal\node\Plugin\Action\UnpublishNode
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\Core\Annotation\Action
Expanded class hierarchy of Action
See also
\Drupal\Core\Action\ActionInterface
\Drupal\Core\Action\ActionManager
\Drupal\Core\Action\ActionBase
Related topics
3 string references to 'Action'
- ActionAdminManageForm::buildForm in core/
modules/ action/ src/ Form/ ActionAdminManageForm.php - Form constructor.
- CommentAdminOverview::buildForm in core/
modules/ comment/ src/ Form/ CommentAdminOverview.php - Form constructor for the comment overview administration form.
- core.data_types.schema.yml in core/
config/ schema/ core.data_types.schema.yml - core/config/schema/core.data_types.schema.yml
24 classes are annotated with Action
- AddRoleUser in core/
modules/ user/ src/ Plugin/ Action/ AddRoleUser.php - Adds a role to a user.
- AssignOwnerNode in core/
modules/ node/ src/ Plugin/ Action/ AssignOwnerNode.php - Assigns ownership of a node to a user.
- BlockUser in core/
modules/ user/ src/ Plugin/ Action/ BlockUser.php - Blocks a user.
- CancelUser in core/
modules/ user/ src/ Plugin/ Action/ CancelUser.php - Cancels a user account.
- DeleteNode in core/
modules/ node/ src/ Plugin/ Action/ DeleteNode.php - Redirects to a node deletion form.
File
- core/
lib/ Drupal/ Core/ Annotation/ Action.php, line 26 - Contains \Drupal\Core\Annotation\Action.
Namespace
Drupal\Core\AnnotationView source
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;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Action:: |
public | property | The category under which the action should be listed in the UI. | |
Action:: |
public | property | The route name 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 definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
2 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 1 |