You are here

public function ControllerBase::buildList in Social Post 8.2

Same name and namespace in other branches
  1. 3.x src/Controller/ControllerBase.php \Drupal\social_post\Controller\ControllerBase::buildList()

Builds the list of users for the specified provider.

Parameters

string $provider: The provider for which to build the list.

Return value

array The render array.

File

src/Controller/ControllerBase.php, line 40

Class

ControllerBase
Controller base for Social Post implementers.

Namespace

Drupal\social_post\Controller

Code

public function buildList($provider) {
  $this->listBuilder
    ->setProvider($provider);
  return $this->listBuilder
    ->render();
}