You are here

public function BUEditorButtonListBuilder::buildHeader in BUEditor 8

Same name and namespace in other branches
  1. 8.2 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\bueditor

Code

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();
}