You are here

public function EntityExtraFieldInfoEvent::addFormFieldInfo 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 79

Class

EntityExtraFieldInfoEvent
Class EntityExtraFieldInfoEvent.

Namespace

Drupal\hook_event_dispatcher\Event\EntityExtra

Code

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