You are here

public function DisableDomain::executeMultiple in Domain Access 8

Executes the plugin for an array of objects.

Parameters

array $objects: An array of entities.

Overrides ActionBase::executeMultiple

File

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

Class

DisableDomain
Sets the domain status property to 0.

Namespace

Drupal\domain\Plugin\Action

Code

public function executeMultiple(array $objects) {
  foreach ($objects as $object) {
    if ($object instanceof DomainInterface) {
      $object
        ->disable();
    }
  }
}