public function CivicrmEntityViewsData::getViewsTableForEntityType in CiviCRM Entity 8.3
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 EntityViewsData::getViewsTableForEntityType
File
- src/
CivicrmEntityViewsData.php, line 162
Class
Namespace
Drupal\civicrm_entityCode
public function getViewsTableForEntityType(EntityTypeInterface $entity_type) {
// CiviCRM Entity tables are `civicrm_*`
return $entity_type
->id();
}