/** * 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. */ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) { parent::init($view, $display, $options); if (empty($view->dateInfo)) { // @todo This used to say $this->dateInfo. Make sure that what we do here // is right. $this->view->dateInfo = new CalendarDateInfo(); $this->view->styleInfo = new CalendarStyleInfo(); } $this->dateInfo =& $this->view->dateInfo; $this->styleInfo =& $this->view->styleInfo; }