You are here

public function DefaultDomain::execute in Domain Access 8

Executes the plugin.

Overrides ExecutableInterface::execute

File

domain/src/Plugin/Action/DefaultDomain.php, line 24

Class

DefaultDomain
Sets the domain is_default property to 1.

Namespace

Drupal\domain\Plugin\Action

Code

public function execute(DomainInterface $domain = NULL) {
  $domain
    ->saveDefault();
}