interface EntityViewsDataInterface (View source)

Provides an interface to integrate an entity type with views.

Methods

array
getViewsData()

Returns views data for the entity type.

string
getViewsTableForEntityType(EntityTypeInterface $entity_type)

Gets the table of an entity type to be used as base table in views.

Details

array getViewsData()

Returns views data for the entity type.

Return Value

array

Views data in the format of hook_views_data().

string getViewsTableForEntityType(EntityTypeInterface $entity_type)

Gets the table of an entity type to be used as base table in views.

Parameters

EntityTypeInterface $entity_type

The entity type.

Return Value

string

The name of the base table in views.