public function ViewRevisionsRequest::hasSourceEntityViewRoutes in Config Entity Revisions 8
Same name and namespace in other branches
- 1.x modules/views_revisions/src/ViewsRevisionsRequest.php \Drupal\views_revisions\ViewRevisionsRequest::hasSourceEntityViewRoutes()
2 calls to ViewRevisionsRequest::hasSourceEntityViewRoutes()
- ViewRevisionsRequest::getRouteName in modules/
views_revisions/ src/ ViewsRevisionsRequest.php - ViewRevisionsRequest::getRouteParameters in modules/
views_revisions/ src/ ViewsRevisionsRequest.php
File
- modules/
views_revisions/ src/ ViewsRevisionsRequest.php, line 311
Class
- ViewRevisionsRequest
- Handles view requests.
Namespace
Drupal\views_revisionsCode
public function hasSourceEntityViewRoutes(EntityInterface $source_entity = NULL) {
if ($source_entity && $this
->routeExists('entity.' . $source_entity
->getEntityTypeId() . '.view_submission.canonical')) {
return TRUE;
}
else {
return FALSE;
}
}