function fullcalendar_fullcalendar_classes in FullCalendar 8.4
Same name and namespace in other branches
- 8.5 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.3 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 6.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 7.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
Implements hook_fullcalendar_classes().
File
- ./
fullcalendar.module, line 64 - Provides a views style plugin for FullCalendar
Code
function fullcalendar_fullcalendar_classes(EntityInterface $entity) {
$classes = [];
if (\Drupal::moduleHandler()
->moduleExists('colors')) {
$classes = array_merge($classes, \Drupal::service('module_handler')
->invokeAll('colors_classes', [
$entity,
]));
}
$classes = array_merge($classes, [
'fc-event-default',
$entity
->bundle(),
]);
return $classes;
}