You are here

public function GroupContentListBuilder::render in Group 8

Same name and namespace in other branches
  1. 2.0.x src/Entity/Controller/GroupContentListBuilder.php \Drupal\group\Entity\Controller\GroupContentListBuilder::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/GroupContentListBuilder.php, line 124

Class

GroupContentListBuilder
Provides a list controller for group content entities.

Namespace

Drupal\group\Entity\Controller

Code

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