You are here

protected function FullCalendarDisplay::defineOptions in Fullcalendar View 8.2

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 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 67

Class

FullCalendarDisplay
Style plugin to render content for FullCalendar.

Namespace

Drupal\fullcalendar_view\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['default_date_source'] = [
    'default' => 'now',
  ];
  $options['defaultDate'] = [
    'default' => '',
  ];
  $options['start'] = [
    'default' => '',
  ];
  $options['end'] = [
    'default' => '',
  ];
  $options['des'] = [
    'default' => '',
  ];
  $options['title'] = [
    'default' => '',
  ];
  $options['use_entity_fields'] = [
    'default' => TRUE,
  ];
  $options['business_start'] = [
    'default' => '',
  ];
  $options['business_end'] = [
    'default' => '',
  ];
  $options['bundle_type'] = [
    'default' => '',
  ];
  $options['tax_field'] = [
    'default' => '',
  ];
  $options['color_bundle'] = [
    'default' => [],
  ];
  $options['color_taxonomies'] = [
    'default' => [],
  ];
  $options['vocabularies'] = [
    'default' => '',
  ];
  $options['right_buttons'] = [
    'default' => [
      'agendaWeek' => 'agendaWeek',
      'agendaDay' => 'agendaDay',
      'listYear' => 'listYear',
    ],
  ];
  $options['default_view'] = [
    'default' => 'month',
  ];
  $options['nav_links'] = [
    'default' => 1,
  ];
  $options['timeFormat'] = [
    'default' => 'H(:mm)',
  ];
  $options['defaultLanguage'] = [
    'default' => 'en',
  ];
  $options['languageSelector'] = [
    'default' => 0,
  ];
  $options['alloweventOverlap'] = [
    'default' => 1,
  ];
  $options['updateAllowed'] = [
    'default' => 1,
  ];
  $options['updateConfirm'] = [
    'default' => 1,
  ];
  $options['dialogWindow'] = [
    'default' => 0,
  ];
  $options['createEventLink'] = [
    'default' => 0,
  ];
  $options['openEntityInNewTab'] = [
    'default' => 1,
  ];
  return $options;
}