public function WebformRevisionsRequest::getRouteName in Config Entity Revisions 1.x
Same name and namespace in other branches
- 8.2 modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::getRouteName()
- 8 modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::getRouteName()
Get the route name for a form/submission and source entity.
Parameters
\Drupal\Core\Entity\EntityInterface $webform_entity: A webform or webform submission.
\Drupal\Core\Entity\EntityInterface|null $source_entity: A webform submission's source entity.
string $route_name: The route name.
Return value
string A route name prefixed with 'entity.{entity_type_id}' or just 'entity'.
Overrides WebformRequest::getRouteName
1 call to WebformRevisionsRequest::getRouteName()
- WebformRevisionsRequest::getUrl in modules/
webform_revisions/ src/ WebformRevisionsRequest.php - Get the URL for a form/submission and source entity.
File
- modules/
webform_revisions/ src/ WebformRevisionsRequest.php, line 248
Class
- WebformRevisionsRequest
- Handles webform requests.
Namespace
Drupal\webform_revisionsCode
public function getRouteName(EntityInterface $webform_entity, EntityInterface $source_entity = NULL, $route_name) {
if (!$this
->hasSourceEntityWebformRoutes($source_entity)) {
$source_entity = NULL;
}
return $this
->getBaseRouteName($webform_entity, $source_entity) . '.' . $route_name;
}