function ActionBase::executeMultiple

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase::executeMultiple()
  2. 10 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase::executeMultiple()
  3. 11.x core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase::executeMultiple()

Overrides ActionInterface::executeMultiple

3 methods override 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.
CancelUser::executeMultiple in core/modules/user/src/Plugin/Action/CancelUser.php
Executes the plugin for an array of objects.
DeleteAction::executeMultiple in core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.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\Action

Code

public function executeMultiple(array $entities) {
    foreach ($entities as $entity) {
        $this->execute($entity);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.