You are here

function fullcalendar_fullcalendar_classes in FullCalendar 8.4

Same name and namespace in other branches
  1. 8.5 fullcalendar.module \fullcalendar_fullcalendar_classes()
  2. 8 fullcalendar.module \fullcalendar_fullcalendar_classes()
  3. 8.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
  4. 8.3 fullcalendar.module \fullcalendar_fullcalendar_classes()
  5. 6.2 fullcalendar.module \fullcalendar_fullcalendar_classes()
  6. 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;
}