public EntityViewsData::getViewsTableForEntityType(EntityTypeInterface $entity_type)
Gets the table of an entity type to be used as base table in views.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
Return value
string The name of the base table in views.
Overrides EntityViewsDataInterface::getViewsTableForEntityType
File
- core/modules/views/src/EntityViewsData.php, line 631
Class
- EntityViewsData
- Provides generic views integration for entities.
Namespace
Drupal\views
Code
public function getViewsTableForEntityType(EntityTypeInterface $entity_type) { return $entity_type->getDataTable() ? : $entity_type->getBaseTable(); }
Please login to continue.