function ViewsConfigEntityTestViewsData::getViewsTableForEntityType

Same name and namespace in other branches
  1. 11.x core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php \Drupal\views_config_entity_test\ViewsConfigEntityTestViewsData::getViewsTableForEntityType()
  2. 10 core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php \Drupal\views_config_entity_test\ViewsConfigEntityTestViewsData::getViewsTableForEntityType()
  3. 8.9.x core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php \Drupal\views_config_entity_test\ViewsConfigEntityTestViewsData::getViewsTableForEntityType()
  4. main core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php \Drupal\views_config_entity_test\ViewsConfigEntityTestViewsData::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.

Overrides EntityViewsDataInterface::getViewsTableForEntityType

File

core/modules/views/tests/modules/views_config_entity_test/src/ViewsConfigEntityTestViewsData.php, line 23

Class

ViewsConfigEntityTestViewsData
Provides a view to override views data for config test entity types.

Namespace

Drupal\views_config_entity_test

Code

public function getViewsTableForEntityType(EntityTypeInterface $entity_type) {
  return 'views_config_entity_test';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.