You are here

public function DashboardListBuilder::buildHeader in Dashboards with Layout Builder 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/DashboardListBuilder.php \Drupal\dashboards\Entity\DashboardListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

Overrides DraggableListBuilder::buildHeader

See also

\Drupal\Core\Entity\EntityListBuilder::render()

File

src/Entity/DashboardListBuilder.php, line 55

Class

DashboardListBuilder
Class DashboardListBuilder.

Namespace

Drupal\dashboards\Entity

Code

public function buildHeader() {
  $header = [
    $this
      ->t('Admin Label'),
    $this
      ->t('Category'),
  ];
  return $header + parent::buildHeader();
}