You are here

public function WorkspaceListBuilder::buildHeader in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/WorkspaceListBuilder.php \Drupal\workspaces\WorkspaceListBuilder::buildHeader()
  2. 9 core/modules/workspaces/src/WorkspaceListBuilder.php \Drupal\workspaces\WorkspaceListBuilder::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

core/modules/workspaces/src/WorkspaceListBuilder.php, line 96

Class

WorkspaceListBuilder
Defines a class to build a listing of workspace entities.

Namespace

Drupal\workspaces

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Workspace');
  $header['uid'] = $this
    ->t('Owner');
  return $header + parent::buildHeader();
}