You are here

protected function ViewsDateFormatSqlArgument::defineOptions in Views Date Format SQL 8.3

Information about options for all kinds of purposes will be held here.


'option_name' => array(
 - 'default' => default value,
 - 'contains' => (optional) array of items this contains, with its own
     defaults, etc. If contains is set, the default will be ignored and
     assumed to be array().
 ),

Return value

array Returns the options of this handler/plugin.

Overrides NumericArgument::defineOptions

File

src/Plugin/views/argument/ViewsDateFormatSqlArgument.php, line 30

Class

ViewsDateFormatSqlArgument
An argument that filters entity timestamp field data.

Namespace

Drupal\views_date_format_sql\Plugin\views\argument

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['format_date_sql'] = array(
    'default' => FALSE,
  );
  $options['format_string'] = array(
    'default' => '',
  );
  return $options;
}