You are here

public function ScheduledTransitionsListBuilder::buildHeader in Scheduled Transitions 8

Same name and namespace in other branches
  1. 2.x src/ScheduledTransitionsListBuilder.php \Drupal\scheduled_transitions\ScheduledTransitionsListBuilder::buildHeader()

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()

1 call to ScheduledTransitionsListBuilder::buildHeader()
ScheduledTransitionsListBuilder::load in src/ScheduledTransitionsListBuilder.php
Loads entities of this type from storage for listing.

File

src/ScheduledTransitionsListBuilder.php, line 68

Class

ScheduledTransitionsListBuilder
Scheduled transition list builder.

Namespace

Drupal\scheduled_transitions

Code

public function buildHeader() : array {
  $header = [
    'entity' => $this
      ->t('Entity'),
    'date' => [
      'data' => $this
        ->t('On date'),
      'field' => 'transition_on',
      'specifier' => 'transition_on',
      'sort' => 'asc',
    ],
  ] + parent::buildHeader();
  return $header;
}