protected function ClassUtilsTrait::typeSupportsBundles in Scheduled Updates 8
1 call to ClassUtilsTrait::typeSupportsBundles()
File
- src/
ClassUtilsTrait.php, line 113 - Contains \Drupal\scheduled_updates\ClassUtilsTrait.
Class
- ClassUtilsTrait
- Trait for Class related functions.
Namespace
Drupal\scheduled_updatesCode
protected function typeSupportsBundles($type_id) {
$bundle_type = $this
->entityTypeManager()
->getDefinition($type_id)
->getBundleEntityType();
if (empty($bundle_type)) {
return FALSE;
}
return TRUE;
}