You are here

public function LogAssign::executeMultiple in farmOS 2.x

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

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

File

modules/core/owner/src/Plugin/Action/LogAssign.php, line 77

Class

LogAssign
Action that assigns users to logs.

Namespace

Drupal\farm_owner\Plugin\Action

Code

public function executeMultiple(array $entities) {

  /** @var \Drupal\Core\Entity\EntityInterface[] $entities */
  $this->tempStore
    ->set($this->currentUser
    ->id(), $entities);
}