You are here

public function EntityBaseFieldInfoAlterEvent::__construct in Hook Event Dispatcher 8.2

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

EntityExtraFieldInfoAlterEvent constructor.

Parameters

array $fields: Extra field info.

\Drupal\Core\Entity\EntityTypeInterface $entityType: The entity type.

File

modules/core_event_dispatcher/src/Event/Entity/EntityBaseFieldInfoAlterEvent.php, line 36

Class

EntityBaseFieldInfoAlterEvent
Class EntityBaseFieldInfoAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function __construct(array &$fields, EntityTypeInterface $entityType) {
  $this->entityType = $entityType;
  $this->fields =& $fields;
}