You are here

public function VoteTypeListBuilder::buildHeader in Voting API 8.3

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/VoteTypeListBuilder.php, line 19

Class

VoteTypeListBuilder
Defines a class to build a listing of vote type entities.

Namespace

Drupal\votingapi

Code

public function buildHeader() {
  $header['id'] = $this
    ->t('Id');
  $header['label'] = $this
    ->t('Label');
  $header['value_type'] = $this
    ->t('Value type');
  $header['description'] = [
    'data' => $this
      ->t('Description'),
    'class' => [
      RESPONSIVE_PRIORITY_MEDIUM,
    ],
  ];
  return $header + parent::buildHeader();
}