You are here

public function Calendar::__construct 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::__construct()

Constructs a Calendar object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Session\AccountProxyInterface $account: Account for current logged in user as this defines user timezone.

\Drupal\Calendar\CalendarStyleInfo $styleInfo: Calendar style info service.

\Drupal\Calendar\CalendarHelper $calendarHelper: Calendar helper service.

Overrides PluginBase::__construct

File

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

Class

Calendar
Views style plugin for the Calendar module.

Namespace

Drupal\calendar\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, $account, $styleInfo, $calendarHelper) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->account = $account;
  $this->styleInfo = $styleInfo;
  $this->calendarHelper = $calendarHelper;
}