You are here

public function EventSeriesListBuilder::buildHeader in Booking and Availability Management Tools for Drupal 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

modules/bat_event_series/src/EventSeriesListBuilder.php, line 48
Contains \Drupal\bat_event_series\EventSeriesListBuilder.

Class

EventSeriesListBuilder
Defines a class to build a listing of Event entities.

Namespace

Drupal\bat_event_series

Code

public function buildHeader() {
  $header = [
    'id' => [
      'data' => $this
        ->t('Event ID'),
      'field' => 'id',
      'specifier' => 'id',
      'class' => [
        RESPONSIVE_PRIORITY_LOW,
      ],
    ],
    'label' => [
      'data' => $this
        ->t('Label'),
      'field' => 'label',
      'specifier' => 'label',
      'class' => [
        RESPONSIVE_PRIORITY_LOW,
      ],
    ],
    'rrule' => [
      'data' => $this
        ->t('RRule'),
      'field' => 'rrule',
      'specifier' => 'rrule',
      'class' => [
        RESPONSIVE_PRIORITY_LOW,
      ],
    ],
  ];
  return $header + parent::buildHeader();
}