public function BulkUpdateFieldsActionBase::executeMultiple in Bulk Update Fields 8
Same name and namespace in other branches
- 8.2 src/Plugin/Action/BulkUpdateFieldsActionBase.php \Drupal\bulk_update_fields\Plugin\Action\BulkUpdateFieldsActionBase::executeMultiple()
Executes the plugin for an array of objects.
Parameters
array $objects: An array of entities.
Overrides ActionBase::executeMultiple
1 call to BulkUpdateFieldsActionBase::executeMultiple()
- BulkUpdateFieldsActionBase::execute in src/
Plugin/ Action/ BulkUpdateFieldsActionBase.php - Executes the plugin.
File
- src/
Plugin/ Action/ BulkUpdateFieldsActionBase.php, line 111
Class
- BulkUpdateFieldsActionBase
- Update Fields.
Namespace
Drupal\bulk_update_fields\Plugin\ActionCode
public function executeMultiple(array $entities) {
$ids = [];
foreach ($entities as $entity) {
$ids[$entity
->id()] = $entity;
}
$this->tempStoreFactory
->get('bulk_update_fields_ids')
->set($this->currentUser
->id(), $ids);
}