You are here

public function FlaggingCollectionListBuilder::buildHeader in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/FlaggingCollectionListBuilder.php \Drupal\flag_lists\FlaggingCollectionListBuilder::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()

File

src/FlaggingCollectionListBuilder.php, line 19

Class

FlaggingCollectionListBuilder
Defines a class to build a listing of Flagging collection entities.

Namespace

Drupal\flag_lists

Code

public function buildHeader() {
  $header['name'] = $this
    ->t('Flagging Collection');
  $header['id'] = $this
    ->t('ID');
  $header['bundle']['data'] = $this
    ->t('Bundle');
  $header['templateflag']['data'] = $this
    ->t('Flag for List');
  $header['relatedflag']['data'] = $this
    ->t('The related flag');
  $header['base_flag']['data'] = $this
    ->t('Template Flag');
  $header['owner']['data'] = $this
    ->t('Owner');
  $header['scope']['data'] = $this
    ->t('Scope');
  $header['operations']['data'] = $this
    ->t('Operations');

  // Don't call parent as we add the Operations header ourselves
  // $header[] = parent::buildHeader();
  return $header;
}