You are here

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

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

EntityExtraFieldInfoAlterEvent constructor.

Parameters

array $fields: Extra field info.

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

string $bundle: The bundle name.

File

modules/core_event_dispatcher/src/Event/Entity/EntityBundleFieldInfoAlterEvent.php, line 44

Class

EntityBundleFieldInfoAlterEvent
Class EntityBundleFieldInfoAlterEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

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