public function Calendar::__construct in Content Planner 8
Calendar constructor.
Parameters
\Drupal\content_calendar\ContentTypeConfigService $content_type_config_service: The content type config service.
\Drupal\content_calendar\ContentCalendarService $content_calendar_service: The content calendar service.
int $month: The month to display in the calendar.
int $year: The year to display in the calendar.
\Drupal\Core\Session\AccountProxyInterface $user: The current user.
File
- modules/
content_calendar/ src/ Component/ Calendar.php, line 67
Class
Namespace
Drupal\content_calendar\ComponentCode
public function __construct(ContentTypeConfigService $content_type_config_service, ContentCalendarService $content_calendar_service, $month, $year, AccountProxyInterface $user) {
$this->contentTypeConfigService = $content_type_config_service;
$this->contentCalendarService = $content_calendar_service;
$this->contentTypeConfigEntities = $this->contentTypeConfigService
->loadAllEntities();
$this->month = $month;
$this->year = $year;
$this->user = $user;
}