public function GroupListBuilder::render in Group 2.0.x
Same name and namespace in other branches
- 8 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\ControllerCode
public function render() {
$build = parent::render();
$build['table']['#empty'] = $this
->t('There are no groups yet.');
return $build;
}