You are here

public function EntityBaseFieldInfoEvent::setFields in Hook Event Dispatcher 8.2

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

Set the fields.

Parameters

array $fields: The fields.

File

modules/core_event_dispatcher/src/Event/Entity/EntityBaseFieldInfoEvent.php, line 71

Class

EntityBaseFieldInfoEvent
Class EntityBaseFieldInfoEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function setFields(array $fields) : void {
  $this->fields = $fields;
}