You are here

public function EntityExtraFieldInfoEvent::addDisplayFieldInfo in Hook Event Dispatcher 8

Add field info for a form display.

Parameters

string $entityType: The entity type.

string $bundle: The bundle.

string $fieldName: The field name.

array $info: The field info.

File

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

Class

EntityExtraFieldInfoEvent
Class EntityExtraFieldInfoEvent.

Namespace

Drupal\hook_event_dispatcher\Event\EntityExtra

Code

public function addDisplayFieldInfo($entityType, $bundle, $fieldName, array $info) {
  $this
    ->addFieldInfo($entityType, $bundle, $fieldName, $info, 'display');
}