You are here

protected function SlickViewsBase::buildSettings in Slick Views 7.3

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/style/SlickViewsBase.php \Drupal\slick_views\Plugin\views\style\SlickViewsBase::buildSettings()

Overrides StylePluginBase::render().

Overrides BlazyStyleBaseTrait::buildSettings

2 calls to SlickViewsBase::buildSettings()
SlickGrouping::render_row_group 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 132

Class

SlickViewsBase
The base class common for Slick style plugins.

Namespace

Drupal\slick_views\Plugin\views\style

Code

protected function buildSettings() {
  $settings = parent::buildSettings();

  // Prepare needed settings to work with.
  $settings['item_id'] = 'slide';
  $settings['caption'] = array_filter($settings['caption']);
  $settings['namespace'] = 'slick';
  $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;
}