You are here

public function EntityViewsDataInterface::getViewsTableForEntityType in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/EntityViewsDataInterface.php \Drupal\views\EntityViewsDataInterface::getViewsTableForEntityType()
  2. 10 core/modules/views/src/EntityViewsDataInterface.php \Drupal\views\EntityViewsDataInterface::getViewsTableForEntityType()

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.

2 methods override EntityViewsDataInterface::getViewsTableForEntityType()
EntityViewsData::getViewsTableForEntityType in core/modules/views/src/EntityViewsData.php
Gets the table of an entity type to be used as base table in views.
ViewsConfigEntityTestViewsData::getViewsTableForEntityType in core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php
@inheritDoc

File

core/modules/views/src/EntityViewsDataInterface.php, line 29

Class

EntityViewsDataInterface
Provides an interface to integrate an entity type with views.

Namespace

Drupal\views

Code

public function getViewsTableForEntityType(EntityTypeInterface $entity_type);