public function getColor(?EntityInterface $entity = null): string
    {
        $color = Configure::read('Calendar.Configs.color');

        if ($entity instanceof EntityInterface && !empty($entity->get('color'))) {
            $color = $entity->get('color');
        }

        if (!$color) {
            $color = '#337ab7';
        }

        return $color;
    }