function UserListBuilder::render

Same name in other branches
  1. 9 core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::render()
  2. 10 core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::render()
  3. 11.x core/modules/user/src/UserListBuilder.php \Drupal\user\UserListBuilder::render()

Overrides EntityListBuilder::render

File

core/modules/user/src/UserListBuilder.php, line 169

Class

UserListBuilder
Defines a class to build a listing of user entities.

Namespace

Drupal\user

Code

public function render() {
    $build = parent::render();
    $build['table']['#empty'] = $this->t('No people available.');
    return $build;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.