Drupal 8.0.0 beta 12. More info: https://www.drupal.org/node/2514176
This commit is contained in:
commit
9921556621
13277 changed files with 1459781 additions and 0 deletions
36
core/modules/views/src/EntityViewsDataInterface.php
Normal file
36
core/modules/views/src/EntityViewsDataInterface.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains \Drupal\views\EntityViewsDataInterface.
|
||||
*/
|
||||
|
||||
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