1. 8.5.x core/modules/views/src/EntityViewsDataInterface.php EntityViewsDataInterface
  2. 8.0.x core/modules/views/src/EntityViewsDataInterface.php EntityViewsDataInterface
  3. 8.1.x core/modules/views/src/EntityViewsDataInterface.php EntityViewsDataInterface
  4. 8.2.x core/modules/views/src/EntityViewsDataInterface.php EntityViewsDataInterface
  5. 8.3.x core/modules/views/src/EntityViewsDataInterface.php EntityViewsDataInterface
  6. 8.4.x core/modules/views/src/EntityViewsDataInterface.php EntityViewsDataInterface
  7. 8.6.x core/modules/views/src/EntityViewsDataInterface.php EntityViewsDataInterface

Provides an interface to integrate an entity type with views.

Hierarchy

Expanded class hierarchy of EntityViewsDataInterface

All classes that implement EntityViewsDataInterface

File

core/modules/views/src/EntityViewsDataInterface.php, line 10

Namespace

Drupal\views
View source
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);

}

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description Overrides
EntityViewsDataInterface::getViewsData public function Returns views data for the entity type.
EntityViewsDataInterface::getViewsTableForEntityType public function Gets the table of an entity type to be used as base table in views.