You are here

public function SocialGroupContentListBuilder::render in Open Social 8

Same name and namespace in other branches
  1. 8.2 modules/social_features/social_group/src/Controller/SocialGroupContentListBuilder.php \Drupal\social_group\Controller\SocialGroupContentListBuilder::render()
  2. 8.3 modules/social_features/social_group/src/Controller/SocialGroupContentListBuilder.php \Drupal\social_group\Controller\SocialGroupContentListBuilder::render()
  3. 8.4 modules/social_features/social_group/src/Controller/SocialGroupContentListBuilder.php \Drupal\social_group\Controller\SocialGroupContentListBuilder::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

1 string reference to 'SocialGroupContentListBuilder::render'
social_group.routing.yml in modules/social_features/social_group/social_group.routing.yml
modules/social_features/social_group/social_group.routing.yml

File

modules/social_features/social_group/src/Controller/SocialGroupContentListBuilder.php, line 146

Class

SocialGroupContentListBuilder
Provides a list controller for group content from GroupContentListBuilder.

Namespace

Drupal\social_group\Controller

Code

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