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()

1 call to EntityListController::buildHeader()
2 methods override EntityListController::buildHeader()

File

drupal/core/lib/Drupal/Core/Entity/EntityListController.php, line 94
Definition of 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;
}