You are here

class RouteHelper in Forms Steps 8

Class RouteHelper.

@package Drupal\forms_steps\Service

Hierarchy

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\Service
View 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

Namesort descending Modifiers Type Description Overrides
RouteHelper::getStepUrl public static function Return the internal URL.