abstract class ActionBase in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase
- 9 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 DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
- class \Drupal\Core\Action\ActionBase implements ActionInterface
- class \Drupal\Core\Plugin\PluginBase uses DependencySerializationTrait, MessengerTrait, StringTranslationTrait
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);
}
}
}