You are here

public function FullCalendarFixedStateEventFormatter::__construct in Booking and Availability Management Tools for Drupal 8

Same name and namespace in other branches
  1. 7 modules/bat_fullcalendar/src/FullCalendarFixedStateEventFormatter.php \Drupal\bat_fullcalendar\FullCalendarFixedStateEventFormatter::__construct()

Parameters

\Drupal\Core\Session\AccountInterface $current_user: Current user.

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

File

modules/bat_fullcalendar/src/FullCalendarFixedStateEventFormatter.php, line 56
Class FullCalendarFixedStateEventFormatter

Class

FullCalendarFixedStateEventFormatter

Namespace

Drupal\bat_fullcalendar

Code

public function __construct(AccountInterface $current_user, ModuleHandlerInterface $module_handler) {
  $this->background = TRUE;
  $this->currentUser = $current_user;
  $this->moduleHandler = $module_handler;
}