You are here

protected function KanbanFilterForm::getStateOptions in Content Planner 8

Gets the State options.

Return value

array Returns an array with the state options.

1 call to KanbanFilterForm::getStateOptions()
KanbanFilterForm::buildForm in modules/content_kanban/src/Form/KanbanFilterForm.php
Form constructor.

File

modules/content_kanban/src/Form/KanbanFilterForm.php, line 208

Class

KanbanFilterForm
KanbanFilterForm class.

Namespace

Drupal\content_kanban\Form

Code

protected function getStateOptions() {
  $options = [];
  foreach ($this->formParams['states'] as $state_id => $state) {
    $options[$state_id] = $state['label'];
  }
  return $options;
}