You are here

public function ViewsDateFormatSqlField::buildOptionsForm in Views Date Format SQL 8.3

Default options form that provides the label widget that all fields should have.

Overrides EntityField::buildOptionsForm

File

src/Plugin/views/field/ViewsDateFormatSqlField.php, line 39

Class

ViewsDateFormatSqlField
A field that displays entity timestamp field data. Supports grouping.

Namespace

Drupal\views_date_format_sql\Plugin\views\field

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['format_date_sql'] = array(
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Use SQL to format date'),
    '#description' => $this
      ->t('Use the SQL databse to format the date. This enables date values to be used in grouping aggregation.'),
    '#default_value' => $this->options['format_date_sql'],
  );
  parent::buildOptionsForm($form, $form_state);
}