public function FullCalendar::defineOptions in FullCalendar 8.3
Same name in this branch
- 8.3 src/Plugin/views/style/FullCalendar.php \Drupal\fullcalendar\Plugin\views\style\FullCalendar::defineOptions()
- 8.3 src/Plugin/fullcalendar/type/FullCalendar.php \Drupal\fullcalendar\Plugin\fullcalendar\type\FullCalendar::defineOptions()
Same name and namespace in other branches
- 8.5 src/Plugin/fullcalendar/type/FullCalendar.php \Drupal\fullcalendar\Plugin\fullcalendar\type\FullCalendar::defineOptions()
- 8 src/Plugin/fullcalendar/type/FullCalendar.php \Drupal\fullcalendar\Plugin\fullcalendar\type\FullCalendar::defineOptions()
- 8.2 src/Plugin/fullcalendar/type/FullCalendar.php \Drupal\fullcalendar\Plugin\fullcalendar\type\FullCalendar::defineOptions()
- 8.4 src/Plugin/fullcalendar/type/FullCalendar.php \Drupal\fullcalendar\Plugin\fullcalendar\type\FullCalendar::defineOptions()
Overrides FullcalendarInterface::defineOptions
File
- src/
Plugin/ fullcalendar/ type/ FullCalendar.php, line 118
Class
- FullCalendar
- @todo.
Namespace
Drupal\fullcalendar\Plugin\fullcalendar\typeCode
public function defineOptions() {
$time = '12';
$date = 'mdy';
$time_format = static::$formats[$time];
$date_format = static::$formats[$date];
$options = [
'defaultView' => [
'default' => 'month',
],
'firstDay' => [
'default' => '0',
],
'weekMode' => [
'default' => 'fixed',
],
'left' => [
'default' => 'today prev,next',
],
'center' => [
'default' => 'title',
],
'right' => [
'default' => 'month agendaWeek agendaDay',
],
'timeformat' => [
'default' => $time_format['time'],
],
'advanced' => [
'default' => FALSE,
],
'slotLabelFormat' => [
'default' => $time_format['slotLabel'],
],
'timeformatMonth' => [
'default' => $time_format['time'],
],
'titleformatMonth' => [
'default' => $date_format['title']['month'],
],
'columnformatMonth' => [
'default' => $date_format['column']['month'],
],
'timeformatWeek' => [
'default' => $time_format['time'],
],
'titleformatWeek' => [
'default' => $date_format['title']['week'],
],
'columnformatWeek' => [
'default' => $date_format['column']['week'],
],
'timeformatDay' => [
'default' => $time_format['time'],
],
'titleformatDay' => [
'default' => $date_format['title']['day'],
],
'columnformatDay' => [
'default' => $date_format['column']['day'],
],
'theme' => [
'default' => TRUE,
],
'sameWindow' => [
'default' => FALSE,
],
'modalWindow' => [
'default' => FALSE,
],
'contentHeight' => [
'default' => 0,
],
'droppable' => [
'default' => FALSE,
],
'editable' => [
'default' => FALSE,
],
];
// Nest these explicitly so that they can be more easily found later.
$options['times'] = [
'contains' => [
'default_date' => [
'default' => FALSE,
],
'date' => [
'default' => [
'year' => '1900',
'month' => '1',
'day' => '1',
],
],
],
];
$options['fields'] = [
'contains' => [
'title_field' => [
'default' => 'title',
],
'url_field' => [
'default' => 'title',
],
'date_field' => [
'default' => [],
],
'title' => [
'default' => FALSE,
],
'url' => [
'default' => FALSE,
],
'date' => [
'default' => FALSE,
],
],
];
return $options;
}