You are here

public function EntityOperationAlterEvent::__construct in Hook Event Dispatcher 8

EntityOperationAlterEvent constructor.

Parameters

array $operations: The array of operations being altered.

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

File

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

Class

EntityOperationAlterEvent
Class EntityOperationAlterEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Entity

Code

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