You are here

public function RobotListBuilder::buildHeader in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/config_entity_example/src/Controller/RobotListBuilder.php \Drupal\config_entity_example\Controller\RobotListBuilder::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\EntityListController::render()

File

config_entity_example/src/Controller/RobotListBuilder.php, line 46

Class

RobotListBuilder
Provides a listing of robot entities.

Namespace

Drupal\config_entity_example\Controller

Code

public function buildHeader() {
  $header['label'] = $this
    ->t('Robot');
  $header['machine_name'] = $this
    ->t('Machine Name');
  $header['floopy'] = $this
    ->t('Floopy');
  return $header + parent::buildHeader();
}