You are here

public function GroupListBuilder::render in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Controller/GroupListBuilder.php \Drupal\group\Entity\Controller\GroupListBuilder::render()

Builds the entity listing as renderable array for table.html.twig.

@todo Add a link to add a new item to the #empty text.

Overrides EntityListBuilder::render

File

src/Entity/Controller/GroupListBuilder.php, line 139

Class

GroupListBuilder
Provides a list controller for group entities.

Namespace

Drupal\group\Entity\Controller

Code

public function render() {
  $build = parent::render();
  $build['table']['#empty'] = $this
    ->t('There are no groups yet.');
  return $build;
}