You are here

public function DomainAliasListBuilder::getDomainId in Domain Access 8

Gets the domain context for this list.

Return value

\Drupal\domain\DomainInterface The domain that is context for this list.

File

domain_alias/src/DomainAliasListBuilder.php, line 98

Class

DomainAliasListBuilder
User interface for the domain alias overview screen.

Namespace

Drupal\domain_alias

Code

public function getDomainId() {

  // @TODO: check for a use-case where we might need to derive the id?
  return !empty($this->domain) ? $this->domain
    ->id() : NULL;
}