public function EventsIndex::__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\bat_fullcalendar\FullCalendarFixedStateEventFormatter $fixedStateEventFormatter:
\Drupal\bat_fullcalendar\FullCalendarOpenStateEventFormatter $openStateEventFormatter:
Overrides ContextAwarePluginBase::__construct
File
- src/
Plugin/ ServiceDefinition/ EventsIndex.php, line 73 - Contains \Drupal\bat_api\Plugin\ServiceDefinition\EventsIndex.php
Class
- EventsIndex
- Plugin annotation @ServiceDefinition( id = "events_index", methods = { "GET" }, translatable = true, deriver = "\Drupal\bat_api\Plugin\Deriver\EventsIndex" )
Namespace
Drupal\bat_api\Plugin\ServiceDefinitionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_manager, AccountInterface $current_user, FullCalendarFixedStateEventFormatter $fixedStateEventFormatter, FullCalendarOpenStateEventFormatter $openStateEventFormatter) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->entityTypeManager = $entity_manager;
$this->currentUser = $current_user;
$this->fixedStateEventFormatter = $fixedStateEventFormatter;
$this->openStateEventFormatter = $openStateEventFormatter;
}