You are here

public function ConflictListBuilder::buildHeader in Workspace 8

Build the table header.

Return value

array The header array used by table render arrays.

1 call to ConflictListBuilder::buildHeader()
ConflictListBuilder::buildList in src/Controller/Component/ConflictListBuilder.php
Build the render array to display on the page.

File

src/Controller/Component/ConflictListBuilder.php, line 97

Class

ConflictListBuilder
A list builder for entity revision conflicts.

Namespace

Drupal\workspace\Controller\Component

Code

public function buildHeader() {
  $header = [
    'title' => $this
      ->t('Title'),
    'type' => [
      'data' => $this
        ->t('Content type'),
      'class' => [
        RESPONSIVE_PRIORITY_MEDIUM,
      ],
    ],
    'author' => [
      'data' => $this
        ->t('Author'),
      'class' => [
        RESPONSIVE_PRIORITY_LOW,
      ],
    ],
    'status' => $this
      ->t('Status'),
    'changed' => [
      'data' => $this
        ->t('Updated'),
      'class' => [
        RESPONSIVE_PRIORITY_LOW,
      ],
    ],
  ];
  return $header;
}