You are here

public function EntityExtraFieldInfoEvent::setFieldInfo in Hook Event Dispatcher 3.x

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

Set the field info.

Parameters

array $fieldInfo: Field info.

File

modules/core_event_dispatcher/src/Event/Entity/EntityExtraFieldInfoEvent.php, line 37

Class

EntityExtraFieldInfoEvent
Class EntityExtraFieldInfoEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

public function setFieldInfo(array $fieldInfo) : void {
  $this->fieldInfo = $fieldInfo;
}