You are here

protected function CalendarEntry::buildOptions in Content Planner 8

Build options before rendering.

Return value

array

1 call to CalendarEntry::buildOptions()
CalendarEntry::build in modules/content_calendar/src/Component/CalendarEntry.php
Build.

File

modules/content_calendar/src/Component/CalendarEntry.php, line 153

Class

CalendarEntry
Class CalendarEntry.

Namespace

Drupal\content_calendar\Component

Code

protected function buildOptions() {
  $options = [];

  // Background color for unpublished content.
  $options['bg_color_unpublished_content'] = $this->config
    ->get('bg_color_unpublished_content') ? $this->config
    ->get('bg_color_unpublished_content') : SettingsForm::DEFAULT_BG_COLOR_UNPUBLISHED_CONTENT;
  return $options;
}