protected EntityViewDisplayEditForm::thirdPartySettingsForm(PluginSettingsInterface $plugin, FieldDefinitionInterface $field_definition, array $form, FormStateInterface $form_state)
Adds the widget or formatter third party settings forms.
Parameters
\Drupal\Core\Field\PluginSettingsInterface $plugin: The widget or formatter.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The field definition.
array $form: The (entire) configuration form array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state.
Return value
array The widget or formatter third party settings form.
Overrides EntityDisplayFormBase::thirdPartySettingsForm
File
- core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php, line 163
Class
- EntityViewDisplayEditForm
- Edit form for the EntityViewDisplay entity type.
Namespace
Drupal\field_ui\Form
Code
protected function thirdPartySettingsForm(PluginSettingsInterface $plugin, FieldDefinitionInterface $field_definition, array $form, FormStateInterface $form_state) { $settings_form = array(); // Invoke hook_field_formatter_third_party_settings_form(), keying resulting // subforms by module name. foreach ($this->moduleHandler->getImplementations('field_formatter_third_party_settings_form') as $module) { $settings_form[$module] = $this->moduleHandler->invoke($module, 'field_formatter_third_party_settings_form', array( $plugin, $field_definition, $this->entity->getMode(), $form, $form_state, )); } return $settings_form; }
Please login to continue.