You are here

protected function IcalWizard::defineOptions in Views iCal 8

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/IcalWizard.php, line 84

Class

IcalWizard
Style plugin to render an iCal feed. This provides a style usable for Feed displays.

Namespace

Drupal\views_ical\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['date_field'] = [
    'default' => NULL,
  ];
  $options['summary_field'] = [
    'default' => NULL,
  ];
  $options['location_field'] = [
    'default' => 'none',
  ];
  $options['url_field'] = [
    'default' => 'none',
  ];
  $options['description_field'] = [
    'default' => 'none',
  ];
  $options['no_time_field'] = [
    'default' => 'none',
  ];
  $options['uid_field'] = [
    'default' => 'none',
  ];
  $options['default_transparency'] = [
    'default' => 'transparent',
  ];
  return $options;
}