You are here

public function EntityOperationEvent::setOperations in Hook Event Dispatcher 8.2

Same name and namespace in other branches
  1. 3.x modules/core_event_dispatcher/src/Event/Entity/EntityOperationEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityOperationEvent::setOperations()

Set the operations.

Parameters

array $operations: An array of operations.

File

modules/core_event_dispatcher/src/Event/Entity/EntityOperationEvent.php, line 65

Class

EntityOperationEvent
Class EntityLoadEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function setOperations(array $operations) : void {
  $this->operations = $operations;
}