trait WorkflowURLRouteParametersTrait in Workflow 8
Provides route parameters for workflow entity types.
Hierarchy
- trait \Drupal\workflow\WorkflowURLRouteParametersTrait
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\workflowView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WorkflowURLRouteParametersTrait:: |
protected | function |