You are here

private function EntityExtraFieldInfoEvent::addFieldInfo in Hook Event Dispatcher 8

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 src/Event/EntityExtra/EntityExtraFieldInfoEvent.php
Add field info for a form display.
EntityExtraFieldInfoEvent::addFormFieldInfo in src/Event/EntityExtra/EntityExtraFieldInfoEvent.php
Add field info for a form display.

File

src/Event/EntityExtra/EntityExtraFieldInfoEvent.php, line 97

Class

EntityExtraFieldInfoEvent
Class EntityExtraFieldInfoEvent.

Namespace

Drupal\hook_event_dispatcher\Event\EntityExtra

Code

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