You are here

protected function CalenderOverviewFilterForm::addJumpLinks in Content Planner 8

1 call to CalenderOverviewFilterForm::addJumpLinks()
CalenderOverviewFilterForm::buildForm in modules/content_calendar/src/Form/CalenderOverviewFilterForm.php
Form constructor.

File

modules/content_calendar/src/Form/CalenderOverviewFilterForm.php, line 59

Class

CalenderOverviewFilterForm

Namespace

Drupal\content_calendar\Form

Code

protected function addJumpLinks(array &$form, FormStateInterface &$formState, $params) {
  $jump_liks = [];
  $months = [
    1 => t('Jan'),
    2 => t('Feb'),
    3 => t('Mar'),
    4 => t('Apr'),
    5 => t('May'),
    6 => t('Jun'),
    7 => t('Jul'),
    8 => t('Aug'),
    9 => t('Sept'),
    10 => t('Oct'),
    11 => t('Nov'),
    12 => t('Dec'),
  ];
  $form['jump_links'] = [
    '#theme' => 'content_calendar_jump_links',
    '#months' => $months,
    '#year' => $params['selected_year'],
  ];
}