You are here

protected function ViewsData::getEndpointViewsTableForEntityType in RedHen CRM 8

Gets the table of an entity type to be used as endpoint table in views.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

Return value

string The base table.

1 call to ViewsData::getEndpointViewsTableForEntityType()
ViewsData::getViewsData in modules/redhen_connection/src/ViewsData.php
Returns the views data.

File

modules/redhen_connection/src/ViewsData.php, line 127

Class

ViewsData
Provides the redhen_connection views integration.

Namespace

Drupal\redhen_connection

Code

protected function getEndpointViewsTableForEntityType(EntityTypeInterface $entity_type) {
  return $entity_type
    ->getDataTable() ?: $entity_type
    ->getBaseTable();
}