You are here

trait WorkflowURLRouteParametersTrait in Workflow 8

Provides route parameters for workflow entity types.

Hierarchy

3 files declare their use of WorkflowURLRouteParametersTrait
Workflow.php in src/Entity/Workflow.php
WorkflowConfigTransition.php in src/Entity/WorkflowConfigTransition.php
WorkflowState.php in src/Entity/WorkflowState.php

File

src/WorkflowURLRouteParametersTrait.php, line 8

Namespace

Drupal\workflow
View source
trait WorkflowURLRouteParametersTrait {

  /**
   * {@inheritdoc}
   */
  protected function urlRouteParameters($rel) {
    $uri_route_parameters = parent::urlRouteParameters($rel);
    $uri_route_parameters['workflow_type'] = $this
      ->getWorkflowId();
    return $uri_route_parameters;
  }

}

Members