You are here

private function EntityExtraFieldInfoEvent::addFieldInfo in Hook Event Dispatcher 8.2

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

Add field info for a given type.

Parameters

string $entityType: The entity type.

string $bundle: The bundle.

string $fieldName: The field name.

array $info: The field info.

string $type: The type.

2 calls to EntityExtraFieldInfoEvent::addFieldInfo()
EntityExtraFieldInfoEvent::addDisplayFieldInfo in modules/core_event_dispatcher/src/Event/Entity/EntityExtraFieldInfoEvent.php
Add field info for a form display.
EntityExtraFieldInfoEvent::addFormFieldInfo in modules/core_event_dispatcher/src/Event/Entity/EntityExtraFieldInfoEvent.php
Add field info for a form display.

File

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

Class

EntityExtraFieldInfoEvent
Class EntityExtraFieldInfoEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

private function addFieldInfo(string $entityType, string $bundle, string $fieldName, array $info, string $type) : void {
  $this->fieldInfo[$entityType][$bundle][$type][$fieldName] = $info;
}