public function WidgetInterface::settingsForm

Returns a form to configure settings for the widget.

Invoked from field_ui_field_edit_form() to allow administrators to configure the widget. 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 definition for the widget settings.

1 method overrides WidgetInterface::settingsForm()
WidgetBase::settingsForm in drupal/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetBase.php
Implements Drupal\field\Plugin\Type\Widget\WidgetInterface::settingsForm().

File

drupal/core/modules/field/lib/Drupal/field/Plugin/Type/Widget/WidgetInterface.php, line 38
Definition of Drupal\field\Plugin\Type\Widget\WidgetInterface.

Class

WidgetInterface
Interface definition for field widget plugins.

Namespace

Drupal\field\Plugin\Type\Widget

Code

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