You are here

public function DatexWidgetTrait::settingsForm in Datex 8

File

./datex.inc.php, line 72

Class

DatexWidgetTrait

Code

public function settingsForm(array $form, FormStateInterface $form_state) {
  $element = parent::settingsForm($form, $form_state);
  $element['datex_schema'] = [
    '#type' => 'select',
    '#title' => t('Date schema'),
    '#default_value' => $this
      ->getSetting('datex_schema'),
    '#options' => _datex_schema_form_options(),
  ];
  return $element;
}