public function BUEditorButtonListBuilder::buildHeader in BUEditor 8.2
Same name and namespace in other branches
- 8 src/BUEditorButtonListBuilder.php \Drupal\bueditor\BUEditorButtonListBuilder::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/
BUEditorButtonListBuilder.php, line 18
Class
- BUEditorButtonListBuilder
- Defines a class to build a list of BUEditor Button entities.
Namespace
Drupal\bueditorCode
public function buildHeader() {
$header['id'] = [
'data' => $this
->t('ID'),
'class' => 'button-id',
];
$header['label'] = [
'data' => $this
->t('Name'),
'class' => 'button-label',
];
return $header + parent::buildHeader();
}