You are here

public function DisableDomain::execute in Domain Access 8

Executes the plugin.

Overrides ExecutableInterface::execute

File

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

Class

DisableDomain
Sets the domain status property to 0.

Namespace

Drupal\domain\Plugin\Action

Code

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