You are here

public function WorkflowListBuilder::buildHeader in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/WorkflowListBuilder.php \Drupal\workflows\WorkflowListBuilder::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/workflows/src/WorkflowListBuilder.php, line 61

Class

WorkflowListBuilder
Provides a listing of Workflow entities.

Namespace

Drupal\workflows

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Workflow');
  $header['type'] = $this
    ->t('Type');
  $header['states'] = $this
    ->t('States');
  return $header + parent::buildHeader();
}