You are here

public function EntityOperationAlterEvent::__construct in Hook Event Dispatcher 8.2

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

EntityOperationAlterEvent constructor.

Parameters

array $operations: The array of operations being altered.

\Drupal\Core\Entity\EntityInterface $entity: The entity.

File

modules/core_event_dispatcher/src/Event/Entity/EntityOperationAlterEvent.php, line 37

Class

EntityOperationAlterEvent
Class EntityOperationAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function __construct(array &$operations, EntityInterface $entity) {
  $this->operations =& $operations;
  $this->entity = $entity;
}