You are here

protected function ClassUtilsTrait::typeSupportsBundles in Scheduled Updates 8

1 call to ClassUtilsTrait::typeSupportsBundles()
ClassUtilsTrait::targetSupportBundles in src/ClassUtilsTrait.php

File

src/ClassUtilsTrait.php, line 113
Contains \Drupal\scheduled_updates\ClassUtilsTrait.

Class

ClassUtilsTrait
Trait for Class related functions.

Namespace

Drupal\scheduled_updates

Code

protected function typeSupportsBundles($type_id) {
  $bundle_type = $this
    ->entityTypeManager()
    ->getDefinition($type_id)
    ->getBundleEntityType();
  if (empty($bundle_type)) {
    return FALSE;
  }
  return TRUE;
}