You are here

protected function GoogleCalendar::defineOptions in FullCalendar 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/field/GoogleCalendar.php \Drupal\fullcalendar\Plugin\views\field\GoogleCalendar::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 FieldPluginBase::defineOptions

File

src/Plugin/views/field/GoogleCalendar.php, line 32

Class

GoogleCalendar
TODO

Namespace

Drupal\fullcalendar\Plugin\views\field

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['label'] = [
    'default' => $this->definition['title'],
    'translatable' => TRUE,
  ];
  $options['gcal'] = [
    'default' => '',
  ];
  $options['class'] = [
    'default' => 'fc-event-default fc-event-gcal',
  ];
  $options['timezone'] = [
    'default' => date_default_timezone_get(),
  ];
  return $options;
}