You are here

public function RobotListBuilder::render in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 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

modules/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;
}