public function StylePluginBase::init

Overrides \Drupal\views\Plugin\views\PluginBase::init().

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 PluginBase::init

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php, line 103
Definition of Drupal\views\Plugin\views\style\StylePluginBase.

Class

StylePluginBase
Base class to define a style plugin handler.

Namespace

Drupal\views\Plugin\views\style

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  if ($this
    ->usesRowPlugin() && $display
    ->getOption('row')) {
    $this->view->rowPlugin = $display
      ->getPlugin('row');
  }
  $this->options += array(
    'grouping' => array(),
  );
}