public function EntityViewsData::getViewsTableForEntityType in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::getViewsTableForEntityType()
- 9 core/modules/views/src/EntityViewsData.php \Drupal\views\EntityViewsData::getViewsTableForEntityType()
File
- core/
modules/ views/ src/ EntityViewsData.php, line 704
Class
- EntityViewsData
- Provides generic views integration for entities.
Namespace
Drupal\viewsCode
public function getViewsTableForEntityType(EntityTypeInterface $entity_type) {
return $entity_type
->getDataTable() ?: $entity_type
->getBaseTable();
}