You are here

protected function EntityFormDisplayEditForm::alterSettingsSummary in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::alterSettingsSummary()

Alters the widget or formatter settings summary.

Parameters

array $summary: The widget or formatter settings summary.

\Drupal\Core\Field\PluginSettingsInterface $plugin: The widget or formatter.

\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.

Overrides EntityDisplayFormBase::alterSettingsSummary

File

core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php, line 138

Class

EntityFormDisplayEditForm
Edit form for the EntityFormDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

protected function alterSettingsSummary(array &$summary, PluginSettingsInterface $plugin, FieldDefinitionInterface $field_definition) {
  $context = [
    'widget' => $plugin,
    'field_definition' => $field_definition,
    'form_mode' => $this->entity
      ->getMode(),
  ];
  $this->moduleHandler
    ->alter('field_widget_settings_summary', $summary, $context);
}