You are here

protected function Kanban::buildHeaders in Content Planner 8

Builds headers for table.

Return value

array Returns an array with the table headers.

1 call to Kanban::buildHeaders()
Kanban::build in modules/content_kanban/src/Component/Kanban.php
Build.

File

modules/content_kanban/src/Component/Kanban.php, line 293

Class

Kanban
The main Kanban class.

Namespace

Drupal\content_kanban\Component

Code

protected function buildHeaders() {
  $headers = [];
  foreach ($this->states as $state) {
    $headers[] = $state['label'];
  }
  return $headers;
}