ProductBundleViewsData.php in Commerce Product Bundle 8        
                          
                  
                        
  
  
  
  
  
File
  src/Entity/ProductBundleViewsData.php
  
    View source  
  <?php
namespace Drupal\commerce_product_bundle\Entity;
use Drupal\views\EntityViewsData;
use Drupal\views\EntityViewsDataInterface;
class ProductBundleViewsData extends EntityViewsData implements EntityViewsDataInterface {
  
  public function getViewsData() {
    $data = parent::getViewsData();
    $data['commerce_product_bundle']['table']['base'] = [
      'field' => 'id',
      'title' => $this
        ->t('Product bundle'),
      'help' => $this
        ->t('The product bundle ID.'),
    ];
    return $data;
  }
}