Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityViewsDataInterface.php

interface EntityViewsDataInterface

Provides an interface to integrate an entity type with views.

Hierarchy

  • interface \Drupal\views\EntityViewsDataInterface

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

Title Sort descending Modifiers Object type Summary Overrides
EntityViewsDataInterface::getViewsData public function Returns views data for the entity type. 1
EntityViewsDataInterface::getViewsTableForEntityType public function Gets the table of an entity type to be used as base table in views. 1
RSS feed
Powered by Drupal