You are here

public function DomainAliasController::listing in Domain Access 8

Provides the listing page for aliases.

Parameters

\Drupal\domain\DomainInterface $domain: An domain record entity.

Return value

array A render array as expected by drupal_render().

1 string reference to 'DomainAliasController::listing'
domain_alias.routing.yml in domain_alias/domain_alias.routing.yml
domain_alias/domain_alias.routing.yml

File

domain_alias/src/Controller/DomainAliasController.php, line 42

Class

DomainAliasController
Returns responses for Domain Alias module routes.

Namespace

Drupal\domain_alias\Controller

Code

public function listing(DomainInterface $domain) {
  $list = $this
    ->entityTypeManager()
    ->getListBuilder('domain_alias');
  $list
    ->setDomain($domain);
  return $list
    ->render();
}