public function EnableDomain::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/ EnableDomain.php, line 31
Class
- EnableDomain
- Sets the domain status property to 1.
Namespace
Drupal\domain\Plugin\ActionCode
public function executeMultiple(array $objects) {
foreach ($objects as $object) {
if ($object instanceof DomainInterface) {
$object
->enable();
}
}
}