You are here

public function ActionListBuilder::buildHeader in Drupal 10

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

Class

ActionListBuilder
Defines a class to build a listing of action entities.

Namespace

Drupal\action

Code

public function buildHeader() {
  $header = [
    'type' => t('Action type'),
    'label' => t('Label'),
  ] + parent::buildHeader();
  return $header;
}