EntityViewsData::getViewsTableForEntityType

public EntityViewsData::getViewsTableForEntityType(EntityTypeInterface $entity_type)

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/src/EntityViewsData.php, line 631

Class

EntityViewsData
Provides generic views integration for entities.

Namespace

Drupal\views

Code

public function getViewsTableForEntityType(EntityTypeInterface $entity_type) {
  return $entity_type->getDataTable() ? : $entity_type->getBaseTable();
}
doc_Drupal
2016-10-29 09:09:11
Comments
Leave a Comment

Please login to continue.