protected function ViewsData::getRevisionViewsTableForEntityType in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 src/ViewsData.php \Drupal\workbench_moderation\ViewsData::getRevisionViewsTableForEntityType()
Gets the table of an entity type to be used as revision table in views.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.
Return value
string The revision base table.
1 call to ViewsData::getRevisionViewsTableForEntityType()
- ViewsData::getViewsData in src/
ViewsData.php - Returns the views data.
File
- src/
ViewsData.php, line 188
Class
- ViewsData
- Provides the workbench_moderation views integration.
Namespace
Drupal\workbench_moderationCode
protected function getRevisionViewsTableForEntityType(EntityTypeInterface $entity_type) {
return $entity_type
->getRevisionDataTable() ?: $entity_type
->getRevisionTable();
}