public function RobotListBuilder::buildHeader in Examples for Developers 3.x
Same name and namespace in other branches
- 8 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\ControllerCode
public function buildHeader() {
$header['label'] = $this
->t('Robot');
$header['machine_name'] = $this
->t('Machine Name');
$header['floopy'] = $this
->t('Floopy');
return $header + parent::buildHeader();
}