You are here

public function ActionBase::executeMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Action/ActionBase.php \Drupal\Core\Action\ActionBase::executeMultiple()

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionInterface::executeMultiple

2 methods override ActionBase::executeMultiple()
CancelUser::executeMultiple in core/modules/user/src/Plugin/Action/CancelUser.php
Executes the plugin for an array of objects.
DeleteNode::executeMultiple in core/modules/node/src/Plugin/Action/DeleteNode.php
Executes the plugin for an array of objects.

File

core/lib/Drupal/Core/Action/ActionBase.php, line 25
Contains \Drupal\Core\Action\ActionBase.

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);
  }
}