You are here

public function EntityOperationEvent::__construct in Hook Event Dispatcher 8

EntityOperationEvent constructor.

Parameters

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

File

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

Class

EntityOperationEvent
Class EntityLoadEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Entity

Code

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