public function FormatterInterface::settingsForm

Returns a form to configure settings for the formatter.

Invoked from field_ui_field_edit_form() to allow administrators to configure the formatter. The field_ui module takes care of handling submitted form values.

Parameters

array $form: The form where the settings form is being included in.

array $form_state: An associative array containing the current state of the form.

Return value

array The form elements for the formatter settings.

1 method overrides FormatterInterface::settingsForm()
FormatterBase::settingsForm in drupal/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterBase.php
Implements Drupal\field\Plugin\Type\Formatter\FormatterInterface::settingsForm().

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Type/Formatter/FormatterInterface.php, line 34
Definition of Drupal\field\Plugin\Type\Formatter\FormatterInterface.

Class

FormatterInterface
Interface definition for field widget plugins.

Namespace

Drupal\field\Plugin\Type\Formatter

Code

public function settingsForm(array $form, array &$form_state);