public function ViewRevisionsRequest::getViewSubmissionEntities in Config Entity Revisions 8
Same name and namespace in other branches
- 1.x modules/views_revisions/src/ViewsRevisionsRequest.php \Drupal\views_revisions\ViewRevisionsRequest::getViewSubmissionEntities()
File
- modules/
views_revisions/ src/ ViewsRevisionsRequest.php, line 215
Class
- ViewRevisionsRequest
- Handles view requests.
Namespace
Drupal\views_revisionsCode
public function getViewSubmissionEntities() {
$view_submission = $this->routeMatch
->getParameter('view_submission');
if (is_string($view_submission)) {
$view_submission = $this->entityTypeManager
->getStorage('view_submission')
->load($view_submission);
}
$source_entity = $this
->getCurrentSourceEntity('view_submission');
return [
$view_submission,
$source_entity,
];
}