public function Date::defineOptions in Views XML Backend 8
Same name in this branch
- 8 src/Plugin/views/filter/Date.php \Drupal\views_xml_backend\Plugin\views\filter\Date::defineOptions()
- 8 src/Plugin/views/argument/Date.php \Drupal\views_xml_backend\Plugin\views\argument\Date::defineOptions()
- 8 src/Plugin/views/field/Date.php \Drupal\views_xml_backend\Plugin\views\field\Date::defineOptions()
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 Date::defineOptions
File
- src/
Plugin/ views/ filter/ Date.php, line 35 - Contains \Drupal\views_xml_backend\Plugin\views\filter\Date.
Class
- Date
- Date filter implementation.
Namespace
Drupal\views_xml_backend\Plugin\views\filterCode
public function defineOptions() {
$options = parent::defineOptions();
$options['xpath_selector']['default'] = '';
$options['granularity']['default'] = 'second';
return $options;
}