ViewsData::getRevisionViewsTableForEntityType

protected ViewsData::getRevisionViewsTableForEntityType(EntityTypeInterface $entity_type)

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.

File

core/modules/content_moderation/src/ViewsData.php, line 262

Class

ViewsData
Provides the content_moderation views integration.

Namespace

Drupal\content_moderation

Code

protected function getRevisionViewsTableForEntityType(EntityTypeInterface $entity_type) {
  return $entity_type->getRevisionDataTable() ? : $entity_type->getRevisionTable();
}
doc_Drupal
2016-10-29 09:55:00
Comments
Leave a Comment

Please login to continue.