protected function Calendar::defineOptions in Calendar 8.2
Same name and namespace in other branches
- 8 src/Plugin/views/style/Calendar.php \Drupal\calendar\Plugin\views\style\Calendar::defineOptions()
Do we still need max_items and max_items_behavior?
Overrides StylePluginBase::defineOptions
File
- src/
Plugin/ views/ style/ Calendar.php, line 211
Class
- Calendar
- Views style plugin for the Calendar module.
Namespace
Drupal\calendar\Plugin\views\styleCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['granularity'] = [
'default' => 'month',
];
$options['day_name_size'] = [
'default' => 99,
];
$options['with_weekno'] = [
'default' => 0,
];
$options['mini'] = [
'default' => 0,
];
$options['multi_allday_style'] = [
'default' => 0,
];
$options['multi_allday_title'] = [
'default' => 0,
];
$options['granularity_links'] = [
'default' => [
'day' => '',
'week' => '',
],
];
$options['colors'] = [
'default' => '',
];
return $options;
}