function EntityFormDisplayEditForm::alterSettingsSummary

Same name in other branches
  1. 9 core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::alterSettingsSummary()
  2. 8.9.x core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::alterSettingsSummary()
  3. 11.x core/modules/field_ui/src/Form/EntityFormDisplayEditForm.php \Drupal\field_ui\Form\EntityFormDisplayEditForm::alterSettingsSummary()

Overrides EntityDisplayFormBase::alterSettingsSummary

File

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

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.