public function FormatterBase::settingsForm

Returns a form to configure settings for the formatter.

Invoked from \Drupal\field_ui\Form\FieldInstanceEditForm 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.

Overrides FormatterInterface::settingsForm

1 call to FormatterBase::settingsForm()
LinkFormatter::settingsForm in drupal/core/modules/link/lib/Drupal/link/Plugin/field/formatter/LinkFormatter.php
Returns a form to configure settings for the formatter.
12 methods override FormatterBase::settingsForm()
DateTimeDefaultFormatter::settingsForm in drupal/core/modules/datetime/lib/Drupal/datetime/Plugin/field/formatter/DatetimeDefaultFormatter.php
Returns a form to configure settings for the formatter.
DefaultNumberFormatter::settingsForm in drupal/core/modules/number/lib/Drupal/number/Plugin/field/formatter/DefaultNumberFormatter.php
Returns a form to configure settings for the formatter.
EntityReferenceEntityFormatter::settingsForm in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceEntityFormatter.php
Returns a form to configure settings for the formatter.
EntityReferenceLabelFormatter::settingsForm in drupal/core/modules/entity_reference/lib/Drupal/entity_reference/Plugin/field/formatter/EntityReferenceLabelFormatter.php
Returns a form to configure settings for the formatter.
ImageFormatter::settingsForm in drupal/core/modules/image/lib/Drupal/image/Plugin/field/formatter/ImageFormatter.php
Returns a form to configure settings for the formatter.

... See full list

File

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

Class

FormatterBase
Base class for 'Field formatter' plugin implementations.

Namespace

Drupal\field\Plugin\Type\Formatter

Code

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