public function FormsStepsManager::getRouteParameters in Forms Steps 8
Returns route parameters.
Parameters
string $route_name: Route to get the parameters from.
Return value
array|false Parameters of the route.
6 calls to FormsStepsManager::getRouteParameters()
- FormsStepsManager::getFormsStepsByRoute in src/
Service/ FormsStepsManager.php - Get the forms_steps entity by route.
- FormsStepsManager::getNextStep in src/
Service/ FormsStepsManager.php - Get the forms_steps next step.
- FormsStepsManager::getNextStepRoute in src/
Service/ FormsStepsManager.php - Get the forms_steps next route step.
- FormsStepsManager::getPreviousStep in src/
Service/ FormsStepsManager.php - Get the forms_steps previous step.
- FormsStepsManager::getPreviousStepRoute in src/
Service/ FormsStepsManager.php - Get the forms_steps previous route step.
File
- src/
Service/ FormsStepsManager.php, line 213
Class
- FormsStepsManager
- Class FormsStepsManager.
Namespace
Drupal\forms_steps\ServiceCode
public function getRouteParameters(string $route_name) {
// forms_steps routes using the format: forms_steps.forms_steps_id.step_id.
$route_pattern = '/^forms_steps\\.([a-zA-Z0-9_]{1,})\\.([a-zA-Z0-9_]{1,})/';
if (preg_match($route_pattern, $route_name, $matches) == 1) {
return $matches;
}
else {
return FALSE;
}
}