You are here

protected function SlickViewsBase::buildSettings in Slick Views 8.2

Same name and namespace in other branches
  1. 7.3 src/Plugin/views/style/SlickViewsBase.php \Drupal\slick_views\Plugin\views\style\SlickViewsBase::buildSettings()
2 calls to SlickViewsBase::buildSettings()
SlickGrouping::renderRowGroup in src/Plugin/views/style/SlickGrouping.php
Overrides StylePluginBase::renderRowGroup().
SlickViews::render in src/Plugin/views/style/SlickViews.php
Overrides StylePluginBase::render().

File

src/Plugin/views/style/SlickViewsBase.php, line 141

Class

SlickViewsBase
The base class common for Slick style plugins.

Namespace

Drupal\slick_views\Plugin\views\style

Code

protected function buildSettings() {

  // @todo move it into self::prepareSettings() post blazy:2.x.
  $this->options['item_id'] = 'slide';
  $this->options['namespace'] = 'slick';
  $settings = parent::buildSettings();

  // Prepare needed settings to work with.
  $settings['caption'] = array_filter($settings['caption']);
  $settings['nav'] = !$settings['vanilla'] && $settings['optionset_thumbnail'] && isset($this->view->result[1]);
  $settings['overridables'] = empty($settings['override']) ? array_filter($settings['overridables']) : $settings['overridables'];
  return $settings;
}