You are here

public function CalendarPager::__construct in Calendar 8.2

Extends the Date instance with CalendarHelper.

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\Calendar\CalendarHelper $calendarHelper: Calendar helper service.

Overrides PluginBase::__construct

File

src/Plugin/views/pager/CalendarPager.php, line 70

Class

CalendarPager
The plugin to handle calendar pager.

Namespace

Drupal\calendar\Plugin\views\pager

Code

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