You are here

public function Calendar::init in Calendar 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/views/style/Calendar.php \Drupal\calendar\Plugin\views\style\Calendar::init()

Overrides \Drupal\views\Plugin\views\style\StylePluginBase::init().

The style info is set through the parent function.

But we also initialize the date info object here.

Overrides StylePluginBase::init

File

src/Plugin/views/style/Calendar.php, line 85

Class

Calendar
Views style plugin for the Calendar module.

Namespace

Drupal\calendar\Plugin\views\style

Code

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  if (empty($view->styleInfo)) {
    $this->view->styleInfo = new CalendarStyleInfo();
  }
  $this->styleInfo =& $this->view->styleInfo;
}