comparison core/modules/views/src/EntityViewsDataInterface.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:c75dbcec494b
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 }