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