function bat_unit_bundle_create in Booking and Availability Management Tools for Drupal 8
Same name and namespace in other branches
- 7 modules/bat_unit/bat_unit.module \bat_unit_bundle_create()
Creates a unit object.
Parameters
array $values: The properties for the new unit bundle.
1 call to bat_unit_bundle_create()
- bat_unit_install_create_default_unit_bundle in modules/
bat_unit/ bat_unit.install - Create default unit bundle.
File
- modules/
bat_unit/ bat_unit.module, line 397 - 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_unit_bundle_create($values = []) {
return UnitBundle::create($values);
}