You are here

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

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

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

Class

EntityExtraFieldInfoEvent
Class EntityExtraFieldInfoEvent.

Namespace

Drupal\core_event_dispatcher\Event\Entity

Code

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