public function CalendarEventsIndex::__construct in Booking and Availability Management API 8
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\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Session\AccountInterface $current_user: Current user.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Drupal\Core\Database\Connection $connection: The database connection.
\Drupal\bat_fullcalendar\FullCalendarFixedStateEventFormatter $fixedStateEventFormatter:
\Drupal\bat_fullcalendar\FullCalendarOpenStateEventFormatter $openStateEventFormatter:
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ ServiceDefinition/ CalendarEventsIndex.php, line 95 - Contains \Drupal\bat_api\Plugin\ServiceDefinition\CalendarEventsIndex.php
Class
- CalendarEventsIndex
- Plugin annotation @ServiceDefinition( id = "calendar_events_index", methods = { "GET" }, translatable = true, deriver = "\Drupal\bat_api\Plugin\Deriver\CalendarEventsIndex" )
Namespace
Drupal\bat_api\Plugin\ServiceDefinitionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_manager, AccountInterface $current_user, ModuleHandlerInterface $module_handler, Connection $connection, FullCalendarFixedStateEventFormatter $fixedStateEventFormatter, FullCalendarOpenStateEventFormatter $openStateEventFormatter) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_manager;
$this->currentUser = $current_user;
$this->moduleHandler = $module_handler;
$this->connection = $connection;
$this->fixedStateEventFormatter = $fixedStateEventFormatter;
$this->openStateEventFormatter = $openStateEventFormatter;
}