You are here

public function RobotListBuilder::render 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::render()

Adds some descriptive text to our entity list.

Typically, there's no need to override render(). You may wish to do so, however, if you want to add markup before or after the table.

Return value

array Renderable array.

Overrides EntityListBuilder::render

File

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

Class

RobotListBuilder
Provides a listing of robot entities.

Namespace

Drupal\config_entity_example\Controller

Code

public function render() {
  $build = $this
    ->description();
  $build[] = parent::render();
  return $build;
}