You are here

public function BaseEntityEvent::__construct in Hook Event Dispatcher 8

BaseEntityEvent constructor.

Parameters

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

4 calls to BaseEntityEvent::__construct()
EntityAccessEvent::__construct in src/Event/Entity/EntityAccessEvent.php
EntityAccessEvent constructor.
EntityBuildDefaultsAlterEvent::__construct in src/Event/Entity/EntityBuildDefaultsAlterEvent.php
EntityBuildDefaultsAlterEvent constructor.
EntityViewAlterEvent::__construct in src/Event/Entity/EntityViewAlterEvent.php
EntityViewAlterEventEvent constructor.
EntityViewEvent::__construct in src/Event/Entity/EntityViewEvent.php
EntityViewEvent constructor.
4 methods override BaseEntityEvent::__construct()
EntityAccessEvent::__construct in src/Event/Entity/EntityAccessEvent.php
EntityAccessEvent constructor.
EntityBuildDefaultsAlterEvent::__construct in src/Event/Entity/EntityBuildDefaultsAlterEvent.php
EntityBuildDefaultsAlterEvent constructor.
EntityViewAlterEvent::__construct in src/Event/Entity/EntityViewAlterEvent.php
EntityViewAlterEventEvent constructor.
EntityViewEvent::__construct in src/Event/Entity/EntityViewEvent.php
EntityViewEvent constructor.

File

src/Event/Entity/BaseEntityEvent.php, line 27

Class

BaseEntityEvent
Class BaseEntityEvent.

Namespace

Drupal\hook_event_dispatcher\Event\Entity

Code

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