public function ProductBundleItemViewsData::getViewsData in Commerce Product Bundle 8
Returns views data for the entity type.
Return value
array Views data in the format of hook_views_data().
Overrides EntityViewsData::getViewsData
File
- src/
Entity/ ProductBundleItemViewsData.php, line 16
Class
- ProductBundleItemViewsData
- Provides Views data for product bundle item entities.
Namespace
Drupal\commerce_product_bundle\EntityCode
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;
}