function EntityViewDisplayEditForm::alterSettingsSummary

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

Overrides EntityDisplayFormBase::alterSettingsSummary

File

core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 190

Class

EntityViewDisplayEditForm
Edit form for the EntityViewDisplay entity type.

Namespace

Drupal\field_ui\Form

Code

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

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