public function FlagForListListBuilder::buildHeader in Flag Lists 8
Same name and namespace in other branches
- 4.0.x src/FlagForListListBuilder.php \Drupal\flag_lists\FlagForListListBuilder::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/
FlagForListListBuilder.php, line 18
Class
- FlagForListListBuilder
- Provides a listing of Flag for list entities.
Namespace
Drupal\flag_listsCode
public function buildHeader() {
$header['label'] = $this
->t('Template name');
$header['id'] = $this
->t('Machine name');
$header['owner'] = [
'data' => $this
->t('Owner'),
];
$header['base_flag'] = [
'data' => $this
->t('Template flag'),
];
$header['entity_type'] = [
'data' => $this
->t('Entity'),
];
$header['bundles'] = [
'data' => $this
->t('Bundles'),
];
$header['scope'] = [
'data' => $this
->t('Scope'),
];
// $header['weight'] = ['data' => $this->t('Weight')];
$header['operations'] = [
'data' => $this
->t('Operations'),
];
$header[] = parent::buildHeader();
return $header;
}