public function ActionBase::executeMultiple in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase::executeMultiple()
- 9 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase::executeMultiple()
1 method overrides ActionBase::executeMultiple()
- BatchUserAction::executeMultiple in core/
modules/ views/ tests/ modules/ user_batch_action_test/ src/ Plugin/ Action/ BatchUserAction.php - Executes the plugin for an array of objects.
File
- core/
lib/ Drupal/ Core/ Action/ ActionBase.php, line 20
Class
- ActionBase
- Provides a base implementation for an Action plugin.
Namespace
Drupal\Core\ActionCode
public function executeMultiple(array $entities) {
foreach ($entities as $entity) {
$this
->execute($entity);
}
}