You are here

public static function RouteHelper::getStepUrl in Forms Steps 8

Return the internal URL.

Parameters

\Drupal\forms_steps\Step $step: The step in question.

string $instance_id: The instance of the step to target.

Return value

string The internal URL.

1 call to RouteHelper::getStepUrl()
WorkflowListBuilder::getDefaultOperations in src/Controller/WorkflowListBuilder.php
Gets this list's default operations.

File

src/Service/RouteHelper.php, line 25

Class

RouteHelper
Class RouteHelper.

Namespace

Drupal\forms_steps\Service

Code

public static function getStepUrl(Step $step, string $instance_id) {
  return $step
    ->url() . "/{$instance_id}";
}