class RouteHelper in Forms Steps 8
Class RouteHelper.
@package Drupal\forms_steps\Service
Hierarchy
- class \Drupal\forms_steps\Service\RouteHelper
Expanded class hierarchy of RouteHelper
1 file declares its use of RouteHelper
- WorkflowListBuilder.php in src/
Controller/ WorkflowListBuilder.php
File
- src/
Service/ RouteHelper.php, line 12
Namespace
Drupal\forms_steps\ServiceView source
class RouteHelper {
/**
* Return the internal URL.
*
* @param \Drupal\forms_steps\Step $step
* The step in question.
* @param string $instance_id
* The instance of the step to target.
*
* @return string
* The internal URL.
*/
public static function getStepUrl(Step $step, string $instance_id) {
return $step
->url() . "/{$instance_id}";
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RouteHelper:: |
public static | function | Return the internal URL. |