Move into nested docroot
This commit is contained in:
parent
83a0d3a149
commit
c8b70abde9
13405 changed files with 0 additions and 0 deletions
31
web/core/modules/views/src/EntityViewsDataInterface.php
Normal file
31
web/core/modules/views/src/EntityViewsDataInterface.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?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);
|
||||
|
||||
}
|
||||
Reference in a new issue