You are here

protected function UIkitViewSlider::defineOptions in UIkit Components 8.3

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

uikit_views/src/Plugin/views/style/UIkitViewSlider.php, line 41

Class

UIkitViewSlider
Style plugin to render each item in a UIkit Slider component.

Namespace

Drupal\uikit_views\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['image_field'] = [
    'default' => NULL,
  ];
  $options['title_field'] = [
    'default' => NULL,
  ];
  $options['caption_field'] = [
    'default' => NULL,
  ];
  $options['thumbnav_field'] = [
    'default' => NULL,
  ];
  $options['width_'] = [
    'default' => 'uk-child-width-1-1',
  ];
  $options['width_@s'] = [
    'default' => 'uk-child-width-1-1@s',
  ];
  $options['width_@m'] = [
    'default' => 'uk-child-width-1-2@m',
  ];
  $options['width_@l'] = [
    'default' => 'uk-child-width-1-3@l',
  ];
  $options['width_@xl'] = [
    'default' => 'uk-child-width-1-4@xl',
  ];
  $options['grid_gutter'] = [
    'default' => NULL,
  ];
  $options['caption_background'] = [
    'default' => NULL,
  ];
  $options['caption_transition'] = [
    'default' => NULL,
  ];
  $options['caption_position'] = [
    'default' => 'uk-position-bottom',
  ];
  $options['caption_modifier'] = [
    'default' => NULL,
  ];
  $options['caption_toggle'] = [
    'default' => FALSE,
  ];
  $options['slidenav'] = [
    'default' => TRUE,
  ];
  $options['slidenav_outside'] = [
    'default' => FALSE,
  ];
  $options['slidenav_big'] = [
    'default' => FALSE,
  ];
  $options['dotnav'] = [
    'default' => TRUE,
  ];
  $options['thumbnav'] = [
    'default' => FALSE,
  ];
  $options['light'] = [
    'default' => FALSE,
  ];
  $options['autoplay'] = [
    'default' => TRUE,
  ];
  $options['autoplay_interval'] = [
    'default' => 6000,
  ];
  $options['center'] = [
    'default' => FALSE,
  ];
  $options['finite'] = [
    'default' => FALSE,
  ];
  $options['index'] = [
    'default' => 0,
  ];
  $options['pause_on_hover'] = [
    'default' => TRUE,
  ];
  $options['sets'] = [
    'default' => FALSE,
  ];
  $options['velocity'] = [
    'default' => 1,
  ];
  $options['grid_match_height'] = [
    'default' => TRUE,
  ];
  $options['grid_match_height_selector'] = [
    'default' => NULL,
  ];
  return $options;
}