You are here

public function DeleteLog::executeMultiple in Log entity 8

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

1 call to DeleteLog::executeMultiple()
DeleteLog::execute in src/Plugin/Action/DeleteLog.php
Executes the plugin.

File

src/Plugin/Action/DeleteLog.php, line 79
Contains \Drupal\log\Plugin\Action\DeleteLog.

Class

DeleteLog
Redirects to a log deletion form.

Namespace

Drupal\log\Plugin\Action

Code

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

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