You are here

public function EqViewsData::getViewsTableForEntityType in EntityFieldQuery Views Backend 8

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

src/EqViewsData.php, line 62
Contains \Drupal\efq_views\EqViewsData.

Class

EqViewsData

Namespace

Drupal\efq_views

Code

public function getViewsTableForEntityType(EntityTypeInterface $entity_type) {
  return 'efq__' . $entity_type
    ->id();
}