public function AbstractFieldSettingsSummaryFormEvent::__construct in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 3.x modules/field_event_dispatcher/src/Event/Field/AbstractFieldSettingsSummaryFormEvent.php \Drupal\field_event_dispatcher\Event\Field\AbstractFieldSettingsSummaryFormEvent::__construct()
AbstractFieldSettingsSummaryFormEvent constructor.
Parameters
array &$summary: An array of summary messages.
array $context: An associative array with the following elements:
- field_definition: The field definition.
If this is a field formatter, will also contain:
- formatter: The formatter plugin.
- view_mode: The view mode being configured.
If this is a field widget, will also contain:
- widget: The widget object.
- form_mode: The form mode being configured.
File
- modules/
field_event_dispatcher/ src/ Event/ Field/ AbstractFieldSettingsSummaryFormEvent.php, line 42
Class
- AbstractFieldSettingsSummaryFormEvent
- Class AbstractFieldSettingsSummaryFormEvent.
Namespace
Drupal\field_event_dispatcher\Event\FieldCode
public function __construct(array &$summary, array $context) {
$this->summary =& $summary;
$this->context = $context;
}