You are here

public function EntityLoadEvent::__construct in Hook Event Dispatcher 8.2

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

EntityLoadEvent constructor.

Parameters

array $entities: The entities.

string $entityTypeId: The entity type id.

File

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

Class

EntityLoadEvent
Class EntityLoadEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function __construct(array $entities, $entityTypeId) {
  $this->entities = $entities;
  $this->entityTypeId = $entityTypeId;
}