3 namespace Drupal\views;
5 use Drupal\Core\Entity\EntityTypeInterface;
8 * Provides an interface to integrate an entity type with views.
10 interface EntityViewsDataInterface {
13 * Returns views data for the entity type.
16 * Views data in the format of hook_views_data().
18 public function getViewsData();
21 * Gets the table of an entity type to be used as base table in views.
23 * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
27 * The name of the base table in views.
29 public function getViewsTableForEntityType(EntityTypeInterface $entity_type);