You are here

function workflow_url_get_parameter in Workflow 8

Helper function to get arbitrary parameter from a route.

Parameters

string $parameter: The requested parameter.

Return value

string field_name

3 calls to workflow_url_get_parameter()
WorkflowHistoryAccess::access in src/Access/WorkflowHistoryAccess.php
Check if the user has permissions to view this workflow.
workflow_url_get_field_name in ./workflow.module
Helper function to get the field name from a route.
workflow_url_get_workflow in ./workflow.module
Helper function to determine Workflow from Workflow UI URL.

File

./workflow.module, line 730
Support workflows made up of arbitrary states.

Code

function workflow_url_get_parameter($parameter) {
  return \Drupal::routeMatch()
    ->getParameter($parameter);

  // Return \Drupal::request()->get($parameter);
}