You are here

protected function SimpleTimeline::defineOptions in A Simple Timeline 8

Set default options.

Overrides StylePluginBase::defineOptions

File

src/Plugin/views/style/SimpleTimeline.php, line 47

Class

SimpleTimeline
Style plugin to render each item in an ordered or unordered list.

Namespace

Drupal\simple_timeline\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['position_items'] = [
    'default' => 'alternate',
  ];
  $options['position_marker'] = [
    'default' => 'marker-center',
  ];
  $options['class'] = [
    'default' => 'item-list',
  ];
  $options['wrapper_class'] = [
    'default' => 'wrapper-list',
  ];
  return $options;
}