You are here

protected function FullCalendarDisplay::defineOptions in Fullcalendar View 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/style/FullCalendarDisplay.php \Drupal\fullcalendar_view\Plugin\views\style\FullCalendarDisplay::defineOptions()
  2. 8.2 src/Plugin/views/style/FullCalendarDisplay.php \Drupal\fullcalendar_view\Plugin\views\style\FullCalendarDisplay::defineOptions()
  3. 6.x src/Plugin/views/style/FullCalendarDisplay.php \Drupal\fullcalendar_view\Plugin\views\style\FullCalendarDisplay::defineOptions()
  4. 5.x src/Plugin/views/style/FullCalendarDisplay.php \Drupal\fullcalendar_view\Plugin\views\style\FullCalendarDisplay::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 StylePluginBase::defineOptions

File

src/Plugin/views/style/FullCalendarDisplay.php, line 63

Class

FullCalendarDisplay
Style plugin to render content for FullCalendar.

Namespace

Drupal\fullcalendar_view\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['defaultDate'] = [
    'default' => '',
  ];
  $options['start'] = [
    'default' => '',
  ];
  $options['end'] = [
    'default' => '',
  ];
  $options['business_start'] = [
    'default' => '',
  ];
  $options['business_end'] = [
    'default' => '',
  ];
  $options['content_type'] = [
    'default' => '',
  ];
  $options['tax_field'] = [
    'default' => '',
  ];
  $options['color_contents'] = [
    'default' => [],
  ];
  $options['color_taxonomies'] = [
    'default' => [],
  ];
  $options['vocabularies'] = [
    'default' => '',
  ];
  $options['right_buttons'] = [
    'default' => [
      'agendaWeek' => 'agendaWeek',
      'agendaDay' => 'agendaDay',
      'listYear' => 'listYear',
    ],
  ];
  return $options;
}