EntityFormDisplayEditForm::alterSettingsSummary

protected EntityFormDisplayEditForm::alterSettingsSummary(array &$summary, PluginSettingsInterface $plugin, FieldDefinitionInterface $field_definition)

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 133

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 = array(
    'widget' => $plugin,
    'field_definition' => $field_definition,
    'form_mode' => $this->entity->getMode(),
  );
  $this->moduleHandler->alter('field_widget_settings_summary', $summary, $context);
}
doc_Drupal
2016-10-29 09:06:21
Comments
Leave a Comment

Please login to continue.