You are here

public function MessageListBuilder::buildHeader in Mass Contact 8

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides EntityListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/MessageListBuilder.php, line 53

Class

MessageListBuilder
Mass contact message archive list builder.

Namespace

Drupal\mass_contact

Code

public function buildHeader() {
  $header = [
    'subject' => [
      'data' => $this
        ->t('Subject'),
      'class' => [
        RESPONSIVE_PRIORITY_MEDIUM,
      ],
    ],
    'sent' => [
      'data' => $this
        ->t('Sent on'),
      'class' => [
        RESPONSIVE_PRIORITY_MEDIUM,
      ],
    ],
    'uid' => [
      'data' => $this
        ->t('Sent by'),
      'class' => [
        RESPONSIVE_PRIORITY_LOW,
      ],
    ],
    'categories' => [
      'data' => $this
        ->t('Categories'),
      'class' => [
        RESPONSIVE_PRIORITY_LOW,
      ],
    ],
  ];
  $header += parent::buildHeader();
  return $header;
}