You are here

public function EntityOperationEvent::__construct in Hook Event Dispatcher 3.x

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

EntityOperationEvent constructor.

Parameters

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

File

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

Class

EntityOperationEvent
Class EntityLoadEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function __construct(EntityInterface $entity) {
  $this->entity = $entity;
}