You are here

public function SlickViewsBase::init in Slick Views 7.3

Initialize a style plugin.

Parameters

view $view:

object $display:

array $options: The style options might come externally as the style can be sourced from at least two locations. If it's not included, look on the display.

Overrides views_plugin_style::init

File

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

Class

SlickViewsBase
The base class common for Slick style plugins.

Namespace

Drupal\slick_views\Plugin\views\style

Code

public function init(&$view, &$display, $options = NULL) {
  parent::init($view, $display, $options);

  // Even empty active to call render; where library is attached if required.
  if ($view->use_ajax) {
    $this->definition['even empty'] = TRUE;
  }
}