public function EntityExtraFieldInfoEvent::addDisplayFieldInfo in Hook Event Dispatcher 3.x
Same name and namespace in other branches
- 8.2 modules/core_event_dispatcher/src/Event/Entity/EntityExtraFieldInfoEvent.php \Drupal\core_event_dispatcher\Event\Entity\EntityExtraFieldInfoEvent::addDisplayFieldInfo()
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 63
Class
- EntityExtraFieldInfoEvent
- Class EntityExtraFieldInfoEvent.
Namespace
Drupal\core_event_dispatcher\Event\EntityCode
public function addDisplayFieldInfo(string $entityType, string $bundle, string $fieldName, array $info) : void {
$this
->addFieldInfo($entityType, $bundle, $fieldName, $info, 'display');
}