Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views / src / EntityViewsDataInterface.php
1 <?php
2
3 namespace Drupal\views;
4
5 use Drupal\Core\Entity\EntityTypeInterface;
6
7 /**
8  * Provides an interface to integrate an entity type with views.
9  */
10 interface EntityViewsDataInterface {
11
12   /**
13    * Returns views data for the entity type.
14    *
15    * @return array
16    *   Views data in the format of hook_views_data().
17    */
18   public function getViewsData();
19
20   /**
21    * Gets the table of an entity type to be used as base table in views.
22    *
23    * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
24    *   The entity type.
25    *
26    * @return string
27    *   The name of the base table in views.
28    */
29   public function getViewsTableForEntityType(EntityTypeInterface $entity_type);
30
31 }