You are here

public function ViewsBulkOperationsActionBase::executeMultiple in Views Bulk Operations (VBO) 8

Same name and namespace in other branches
  1. 8.3 src/Action/ViewsBulkOperationsActionBase.php \Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase::executeMultiple()
  2. 8.2 src/Action/ViewsBulkOperationsActionBase.php \Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase::executeMultiple()
  3. 4.0.x src/Action/ViewsBulkOperationsActionBase.php \Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase::executeMultiple()

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

1 method overrides ViewsBulkOperationsActionBase::executeMultiple()
ViewsBulkOperationsPassTestAction::executeMultiple in tests/views_bulk_operations_test/src/Plugin/Action/ViewsBulkOperationsPassTestAction.php
Execute action on multiple entities.

File

src/Action/ViewsBulkOperationsActionBase.php, line 63

Class

ViewsBulkOperationsActionBase
Views Bulk Operations action plugin base.

Namespace

Drupal\views_bulk_operations\Action

Code

public function executeMultiple(array $objects) {
  $results = [];
  foreach ($objects as $entity) {
    $results[] = $this
      ->execute($entity);
  }
  return $results;
}