You are here

public function SmartDateDailyRangeFormatter::settingsForm in Smart Date 3.2.x

Same name and namespace in other branches
  1. 3.0.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::settingsForm()
  2. 3.1.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::settingsForm()
  3. 3.3.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::settingsForm()
  4. 3.4.x modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php \Drupal\smart_date_recur\Plugin\Field\FieldFormatter\SmartDateDailyRangeFormatter::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 SmartDateDefaultFormatter::settingsForm

File

modules/smart_date_recur/src/Plugin/Field/FieldFormatter/SmartDateDailyRangeFormatter.php, line 43

Class

SmartDateDailyRangeFormatter
Plugin for a recurrence-optimized formatter for 'smartdate' fields.

Namespace

Drupal\smart_date_recur\Plugin\Field\FieldFormatter

Code

public function settingsForm(array $form, FormStateInterface $form_state) {

  // Use the upstream settings form, which gives us a control to override the
  // timezone.
  $form = parent::settingsForm($form, $form_state);
  return $form;
}