function EntityListBuilder::buildHeader

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::buildHeader()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::buildHeader()
  3. 11.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::buildHeader()

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

See also

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

24 calls to EntityListBuilder::buildHeader()
ActionListBuilder::buildHeader in core/modules/action/src/ActionListBuilder.php
BlockContentListBuilder::buildHeader in core/modules/block_content/src/BlockContentListBuilder.php
BlockContentTypeListBuilder::buildHeader in core/modules/block_content/src/BlockContentTypeListBuilder.php
CommentTypeListBuilder::buildHeader in core/modules/comment/src/CommentTypeListBuilder.php
ConfigTestListBuilder::buildHeader in core/modules/config/tests/config_test/src/ConfigTestListBuilder.php

... See full list

25 methods override EntityListBuilder::buildHeader()
ActionListBuilder::buildHeader in core/modules/action/src/ActionListBuilder.php
BlockContentListBuilder::buildHeader in core/modules/block_content/src/BlockContentListBuilder.php
BlockContentTypeListBuilder::buildHeader in core/modules/block_content/src/BlockContentTypeListBuilder.php
CommentTypeListBuilder::buildHeader in core/modules/comment/src/CommentTypeListBuilder.php
ConfigTestListBuilder::buildHeader in core/modules/config/tests/config_test/src/ConfigTestListBuilder.php

... See full list

File

core/lib/Drupal/Core/Entity/EntityListBuilder.php, line 199

Class

EntityListBuilder
Defines a generic implementation to build a listing of entities.

Namespace

Drupal\Core\Entity

Code

public function buildHeader() {
    $row['operations'] = $this->t('Operations');
    return $row;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.