function commerce_invoice_entity_bundle_info in Commerce Invoice 8.2
Implements hook_entity_bundle_info().
File
- ./commerce_invoice.module, line 35 
- Defines the Invoice entity and associated features.
Code
function commerce_invoice_entity_bundle_info() {
  $purchasable_entity_types = commerce_invoice_get_purchasable_entity_types();
  $bundles = [];
  foreach ($purchasable_entity_types as $entity_type_id => $entity_type) {
    $bundles['commerce_invoice_item'][$entity_type_id] = [
      'label' => $entity_type
        ->getLabel(),
      'translatable' => FALSE,
      'provider' => 'commerce_invoice',
    ];
  }
  return $bundles;
}