class ActionBase
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase
- 10 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase
- 11.x core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase
Provides a base implementation for an Action plugin.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\Core\Action\ActionBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\Core\Action\ActionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of ActionBase
See also
\Drupal\Core\Annotation\Action
\Drupal\Core\Action\ActionManager
\Drupal\Core\Action\ActionInterface
8 files declare their use of ActionBase
- BatchUserAction.php in core/
modules/ views/ tests/ modules/ user_batch_action_test/ src/ Plugin/ Action/ BatchUserAction.php - BlockUser.php in core/
modules/ user/ src/ Plugin/ Action/ BlockUser.php - CancelUser.php in core/
modules/ user/ src/ Plugin/ Action/ CancelUser.php - EntityActionBase.php in core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ EntityActionBase.php - FieldUpdateActionBase.php in core/
lib/ Drupal/ Core/ Field/ FieldUpdateActionBase.php
File
-
core/
lib/ Drupal/ Core/ Action/ ActionBase.php, line 15
Namespace
Drupal\Core\ActionView source
abstract class ActionBase extends PluginBase implements ActionInterface {
/**
* {@inheritdoc}
*/
public function executeMultiple(array $entities) {
foreach ($entities as $entity) {
$this->execute($entity);
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
ActionBase::executeMultiple | public | function | Executes the plugin for an array of objects. | Overrides ActionInterface::executeMultiple | 3 |
ActionInterface::access | public | function | Checks object access. | 19 | |
ExecutableInterface::execute | public | function | Executes the plugin. | 21 | |
PluginInspectionInterface::getPluginDefinition | public | function | Gets the definition of the plugin implementation. | 6 | |
PluginInspectionInterface::getPluginId | public | function | Gets the plugin_id of the plugin instance. | 2 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.