protected function WebformRevisionsRequest::routeExists in Config Entity Revisions 8
Same name and namespace in other branches
- 8.2 modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::routeExists()
- 1.x modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::routeExists()
Check if route exists.
Parameters
string $name: Route name.
Return value
bool TRUE if the route exists.
Overrides WebformRequest::routeExists
See also
http://drupal.stackexchange.com/questions/222591/how-do-i-verify-a-route...
1 call to WebformRevisionsRequest::routeExists()
- WebformRevisionsRequest::hasSourceEntityWebformRoutes in modules/
webform_revisions/ src/ WebformRevisionsRequest.php - Check if a source entity has dedicate webform routes.
File
- modules/
webform_revisions/ src/ WebformRevisionsRequest.php, line 361
Class
- WebformRevisionsRequest
- Handles webform requests.
Namespace
Drupal\webform_revisionsCode
protected function routeExists($name) {
try {
$this->routeProvider
->getRouteByName($name);
return TRUE;
} catch (\Exception $exception) {
return FALSE;
}
}