public function CommerceSmartImporerService::getEntityBundles in Commerce Smart Importer 8
Returns list of bundles for entity.
File
- src/Plugin/ CommerceSmartImporerService.php, line 1873 
- Main Commerce Smart Importer Service.
Class
- CommerceSmartImporerService
- This is main Commerce Smart Importer Service.
Namespace
Drupal\commerce_smart_importer\PluginCode
public function getEntityBundles($entity_name) {
  $bundles = $this->entityTypeBundleInfo
    ->getBundleInfo($entity_name);
  $entityBundles = [];
  foreach ($bundles as $key => $bundle) {
    $entityBundles[$key] = $bundle['label'];
  }
  return $entityBundles;
}