public function StylePluginBase::init in Views (for Drupal 7) 8.3
Initialize a style plugin.
Parameters
$view:
$display:
$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.
File
- lib/
Drupal/ views/ Plugin/ views/ style/ StylePluginBase.php, line 91 - Definition of Drupal\views\Plugin\views\style\StylePluginBase.
Class
- StylePluginBase
- Base class to define a style plugin handler.
Namespace
Drupal\views\Plugin\views\styleCode
public function init(ViewExecutable $view, &$display, $options = NULL) {
$this
->setOptionDefaults($this->options, $this
->defineOptions());
$this->view =& $view;
$this->displayHandler =& $display;
$this
->unpackOptions($this->options, $options);
if ($this
->usesRowPlugin() && $display
->getOption('row')) {
$this->row_plugin = $display
->getPlugin('row');
}
$this->options += array(
'grouping' => array(),
);
}