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