function fullcalendar_fullcalendar_classes in FullCalendar 8
Same name and namespace in other branches
- 8.5 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.3 fullcalendar.module \fullcalendar_fullcalendar_classes()
- 8.4 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 67 - Provides a views style plugin for FullCalendar
Code
function fullcalendar_fullcalendar_classes(EntityInterface $entity) {
$classes = [
'fc-event-default',
$entity
->bundle(),
];
// @todo: ???
// Add a class for the date field being used.
if (isset($entity->fullcalendar_date_field)) {
$classes[] = "fc-event-field-{$entity->fullcalendar_date_field}";
}
return $classes;
}