public function BulkEdit::executeMultiple in Views Bulk Edit 8
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
1 call to BulkEdit::executeMultiple()
- BulkEdit::execute in src/
Plugin/ Action/ BulkEdit.php - Executes the plugin.
File
- src/
Plugin/ Action/ BulkEdit.php, line 70
Class
- BulkEdit
- Bulk edit entities.
Namespace
Drupal\views_bulk_edit\Plugin\ActionCode
public function executeMultiple(array $entities) {
// Grab the entity Ids.
$entities_keyed = [];
foreach ($entities as $entity) {
$entities_keyed[$entity
->id()] = $entity;
}
$this
->persistBulkEditEntityIds($entities_keyed);
}