public function KanbanService::useContentCalendarColors in Content Planner 8
Checks if the option to use the Content Calendar colors is active.
Return value
bool Returns TRUE if the use of calendar colors is enabled, FALSE otherwise.
1 call to KanbanService::useContentCalendarColors()
- KanbanService::getEntityTypeConfigs in modules/
content_kanban/ src/ KanbanService.php - Get Entity Type Configs.
File
- modules/
content_kanban/ src/ KanbanService.php, line 126
Class
- KanbanService
- Class KanbanService.
Namespace
Drupal\content_kanbanCode
public function useContentCalendarColors() {
if ($this
->contentCalendarModuleIsEnabled()) {
$settings = $this
->getKanbanSettings();
if ($value = $settings
->get('use_content_calendar_colors')) {
return (bool) $value;
}
}
return FALSE;
}