You are here

public function LayoutListBuilder::buildHeader in Layout builder library 8

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/Entity/LayoutListBuilder.php, line 80

Class

LayoutListBuilder
Defines a list builder for layouts.

Namespace

Drupal\layout_library\Entity

Code

public function buildHeader() {
  $rows = [
    'label' => $this
      ->t('Label'),
    'entity_type_id' => $this
      ->t('Entity Type'),
    'bundle' => $this
      ->t('Bundle'),
  ];
  return $rows + parent::buildHeader();
}