You are here

public function DomainListBuilder::render in Domain Access 8

Builds the entity listing as a form with pagination. This method overrides both Drupal\Core\Config\Entity\DraggableListBuilder::render() and Drupal\Core\Entity\EntityListBuilder::render().

Overrides DraggableListBuilder::render

File

domain/src/DomainListBuilder.php, line 309

Class

DomainListBuilder
User interface for the domain overview screen.

Namespace

Drupal\domain

Code

public function render() {

  // Build the default form, which includes weights.
  $form = $this
    ->formBuilder()
    ->getForm($this);

  // Only add the pager if a limit is specified.
  if ($this->limit) {
    $form['pager'] = [
      '#type' => 'pager',
    ];
  }
  return $form;
}