public function FlagListItemListBuilder::buildHeader in Flag Lists 8
Same name and namespace in other branches
- 4.0.x src/FlagListItemListBuilder.php \Drupal\flag_lists\FlagListItemListBuilder::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/
FlagListItemListBuilder.php, line 19
Class
- FlagListItemListBuilder
- Defines a class to build a listing of Flag list item entities.
Namespace
Drupal\flag_listsCode
public function buildHeader() {
$header['id'] = $this
->t('Flag list item ID');
$header['name'] = $this
->t('Name');
$header['entity_id'] = $this
->t('Entity ID');
$header['entity_exist'] = $this
->t('Entity exist?');
return $header + parent::buildHeader();
}