public function EntityListController::buildHeader

Builds the header row for the entity listing.

Return value

array A render array structure of header strings.

See also

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

3 calls to EntityListController::buildHeader()
EntityListController::render in drupal/core/lib/Drupal/Core/Entity/EntityListController.php
Implements \Drupal\Core\Entity\EntityListControllerInterface::render().
RoleListController::buildHeader in drupal/core/modules/user/lib/Drupal/user/RoleListController.php
Builds the header row for the entity listing.
VocabularyListController::buildHeader in drupal/core/modules/taxonomy/lib/Drupal/taxonomy/VocabularyListController.php
Builds the header row for the entity listing.
8 methods override EntityListController::buildHeader()
ActionListController::buildHeader in drupal/core/modules/action/lib/Drupal/action/ActionListController.php
Builds the header row for the entity listing.
CategoryListController::buildHeader in drupal/core/modules/contact/lib/Drupal/contact/CategoryListController.php
Overrides Drupal\Core\Entity\EntityListController::buildHeader().
CustomBlockTypeListController::buildHeader in drupal/core/modules/block/custom_block/lib/Drupal/custom_block/CustomBlockTypeListController.php
Overrides \Drupal\Core\Entity\EntityListController::buildHeader().
MenuListController::buildHeader in drupal/core/modules/menu/lib/Drupal/menu/MenuListController.php
Overrides \Drupal\Core\Entity\EntityListController::buildHeader().
RoleListController::buildHeader in drupal/core/modules/user/lib/Drupal/user/RoleListController.php
Builds the header row for the entity listing.

... See full list

File

drupal/core/lib/Drupal/Core/Entity/EntityListController.php, line 121
Contains \Drupal\Core\Entity\EntityListController.

Class

EntityListController
Provides a generic implementation of an entity list controller.

Namespace

Drupal\Core\Entity

Code

public function buildHeader() {
  $row['label'] = t('Label');
  $row['id'] = t('Machine name');
  $row['operations'] = t('Operations');
  return $row;
}