function bat_type_group_bundle_load in Booking and Availability Management Tools for Drupal 8
Menu argument loader; Load a type group bundle by string.
Parameters
string $bundle: The machine-readable name of a type group bundle to load.
bool $reset: A boolean indicating whether the internal cache should be reset.
Return value
\Drupal\bat\Entity\TypeGroupBundle A type group bundle array or FALSE if $bundle does not exist.
File
- ./
bat.module, line 613 - Contains bat.module..
Code
function bat_type_group_bundle_load($bundle, $reset = FALSE) {
if ($reset) {
\Drupal::entityTypeManager()
->getStorage('bat_type_group_bundle')
->resetCache([
$bundle,
]);
}
return TypeGroupBundle::load($bundle);
}