Mercurial > hg > isophonics-drupal-site
view core/modules/views/src/EntityViewsDataInterface.php @ 9:1fc0ff908d1f
Add another data file
author | Chris Cannam |
---|---|
date | Mon, 05 Feb 2018 12:34:32 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
<?php namespace Drupal\views; use Drupal\Core\Entity\EntityTypeInterface; /** * Provides an interface to integrate an entity type with views. */ interface EntityViewsDataInterface { /** * Returns views data for the entity type. * * @return array * Views data in the format of hook_views_data(). */ public function getViewsData(); /** * Gets the table of an entity type to be used as base table in views. * * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type * The entity type. * * @return string * The name of the base table in views. */ public function getViewsTableForEntityType(EntityTypeInterface $entity_type); }