You are here

function bat_type_delete_multiple in Booking and Availability Management Tools for Drupal 8

Same name and namespace in other branches
  1. 7 modules/bat_unit/bat_unit.module \bat_type_delete_multiple()

Deletes multiple Bat Types.

Parameters

array $type_ids: An array of type IDs.

File

modules/bat_unit/bat_unit.module, line 672
Manage units - Units are things that can be booked for some period of time. (e.g. rooms - but also villas bungalows, cars, drills, you-get-the-idea etc.)

Code

function bat_type_delete_multiple(array $type_ids) {
  $types = UnitType::loadMultiple($type_ids);
  foreach ($types as $type) {
    $type
      ->delete();
  }
}