function FormatterBase::settingsForm
Returns a form to configure settings for the formatter.
Invoked from \Drupal\field_ui\Form\EntityDisplayFormBase 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.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form elements for the formatter settings.
Overrides FormatterInterface::settingsForm
10 calls to FormatterBase::settingsForm()
- AggregatorTitleFormatter::settingsForm in core/
modules/ aggregator/ src/ Plugin/ Field/ FieldFormatter/ AggregatorTitleFormatter.php - BooleanFormatter::settingsForm in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ BooleanFormatter.php - DateTimeFormatterBase::settingsForm in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeFormatterBase.php - ImageFormatter::settingsForm in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageFormatter.php - ImageUrlFormatter::settingsForm in core/
modules/ image/ src/ Plugin/ Field/ FieldFormatter/ ImageUrlFormatter.php
25 methods override FormatterBase::settingsForm()
- AggregatorTitleFormatter::settingsForm in core/
modules/ aggregator/ src/ Plugin/ Field/ FieldFormatter/ AggregatorTitleFormatter.php - BaseFieldFileFormatterBase::settingsForm in core/
modules/ file/ src/ Plugin/ Field/ FieldFormatter/ BaseFieldFileFormatterBase.php - Returns a form to configure settings for the formatter.
- BooleanFormatter::settingsForm in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldFormatter/ BooleanFormatter.php - CommentDefaultFormatter::settingsForm in core/
modules/ comment/ src/ Plugin/ Field/ FieldFormatter/ CommentDefaultFormatter.php - DateTimeFormatterBase::settingsForm in core/
modules/ datetime/ src/ Plugin/ Field/ FieldFormatter/ DateTimeFormatterBase.php
File
-
core/
lib/ Drupal/ Core/ Field/ FormatterBase.php, line 124
Class
- FormatterBase
- Base class for 'Field formatter' plugin implementations.
Namespace
Drupal\Core\FieldCode
public function settingsForm(array $form, FormStateInterface $form_state) {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.