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. 4.0.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.

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