You are here

public function DeleteNode::executeMultiple in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Plugin/Action/DeleteNode.php \Drupal\node\Plugin\Action\DeleteNode::executeMultiple()

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

1 call to DeleteNode::executeMultiple()
DeleteNode::execute in core/modules/node/src/Plugin/Action/DeleteNode.php
Executes the plugin.

File

core/modules/node/src/Plugin/Action/DeleteNode.php, line 79
Contains \Drupal\node\Plugin\Action\DeleteNode.

Class

DeleteNode
Redirects to a node deletion form.

Namespace

Drupal\node\Plugin\Action

Code

public function executeMultiple(array $entities) {
  $info = [];

  /** @var \Drupal\node\NodeInterface $node */
  foreach ($entities as $node) {
    $langcode = $node
      ->language()
      ->getId();
    $info[$node
      ->id()][$langcode] = $langcode;
  }
  $this->tempStore
    ->set($this->currentUser
    ->id(), $info);
}