protected function YamlFormSubmissionForm::isRoute in YAML Form 8
Determine if the current request is a specific route (name).
Parameters
string $route_name: A route name.
Return value
bool TRUE if the current request is a specific route (name).
1 call to YamlFormSubmissionForm::isRoute()
- YamlFormSubmissionForm::displayMessages in src/
YamlFormSubmissionForm.php - Display draft and previous submission status messages for this form submission.
File
- src/
YamlFormSubmissionForm.php, line 1391
Class
- YamlFormSubmissionForm
- Provides a form to collect and edit submissions.
Namespace
Drupal\yamlformCode
protected function isRoute($route_name) {
return $route_name == $this
->getRouteMatch()
->getRouteName() ? TRUE : FALSE;
}