function RobotListBuilder::buildHeader

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

modules/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['neural_system'] = $this->t('Neural system');
    return $header + parent::buildHeader();
}