You are here

public function FullCalendar::__construct in FullCalendar 8.2

Same name in this branch
  1. 8.2 src/Plugin/views/style/FullCalendar.php \Drupal\fullcalendar\Plugin\views\style\FullCalendar::__construct()
  2. 8.2 src/Plugin/fullcalendar/type/FullCalendar.php \Drupal\fullcalendar\Plugin\fullcalendar\type\FullCalendar::__construct()
Same name and namespace in other branches
  1. 8.5 src/Plugin/views/style/FullCalendar.php \Drupal\fullcalendar\Plugin\views\style\FullCalendar::__construct()
  2. 8 src/Plugin/views/style/FullCalendar.php \Drupal\fullcalendar\Plugin\views\style\FullCalendar::__construct()
  3. 8.3 src/Plugin/views/style/FullCalendar.php \Drupal\fullcalendar\Plugin\views\style\FullCalendar::__construct()
  4. 8.4 src/Plugin/views/style/FullCalendar.php \Drupal\fullcalendar\Plugin\views\style\FullCalendar::__construct()

Constructs a new Fullcalendar object.

Parameters

array $configuration:

string $plugin_id:

mixed $plugin_definition:

\Drupal\Component\Plugin\PluginManagerInterface $fullcalendar_manager: FullCalendar Manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\Entity\EntityFieldManagerInterface $field_manager: Entity Field Manager.

\Drupal\Core\Datetime\DateFormatter $date_formatter: The date formatter service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.

Overrides PluginBase::__construct

File

src/Plugin/views/style/FullCalendar.php, line 107

Class

FullCalendar
Plugin annotation @ViewsStyle( id = "fullcalendar", title = @Translation("FullCalendar"), help = @Translation("Displays items on a calendar."), theme = "views_view--fullcalendar", display_types = {"normal"} )

Namespace

Drupal\fullcalendar\Plugin\views\style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, PluginManagerInterface $fullcalendar_manager, ModuleHandlerInterface $module_handler, $field_manager, DateFormatter $date_formatter, MessengerInterface $messenger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->pluginBag = new FullcalendarPluginCollection($fullcalendar_manager, $this);
  $this->moduleHandler = $module_handler;
  $this->fieldManager = $field_manager;
  $this->dateFormatter = $date_formatter;
  $this->messenger = $messenger;
}