function DeleteAction::executeMultiple
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::executeMultiple()
- 10 core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::executeMultiple()
- 11.x core/lib/Drupal/Core/Action/Plugin/Action/DeleteAction.php \Drupal\Core\Action\Plugin\Action\DeleteAction::executeMultiple()
Overrides ActionBase::executeMultiple
1 call to DeleteAction::executeMultiple()
- DeleteAction::execute in core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ DeleteAction.php - Executes the plugin.
File
-
core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ DeleteAction.php, line 75
Class
- DeleteAction
- Redirects to an entity deletion form.
Namespace
Drupal\Core\Action\Plugin\ActionCode
public function executeMultiple(array $entities) {
/** @var \Drupal\Core\Entity\EntityInterface[] $entities */
$selection = [];
foreach ($entities as $entity) {
$langcode = $entity->language()
->getId();
$selection[$entity->id()][$langcode] = $langcode;
}
$this->tempStore
->set($this->currentUser
->id() . ':' . $this->getPluginDefinition()['type'], $selection);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.