public function DeleteDomain::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/ DeleteDomain.php, line 31
Class
- DeleteDomain
- Deletes a domain record.
Namespace
Drupal\domain\Plugin\ActionCode
public function executeMultiple(array $objects) {
foreach ($objects as $object) {
if ($object instanceof DomainInterface) {
$object
->delete();
}
}
}