function WorkflowStateTransitionOperationsAccessCheck::getOperation

Same name and namespace in other branches
  1. 11.x core/modules/workflows/src/WorkflowStateTransitionOperationsAccessCheck.php \Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck::getOperation()

Get the operation that will be used for the access check.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The parametrized route

Return value

string The access operation.

File

core/modules/workflows/src/WorkflowStateTransitionOperationsAccessCheck.php, line 80

Class

WorkflowStateTransitionOperationsAccessCheck
Provides an access check for state and transition operations.

Namespace

Drupal\workflows

Code

protected function getOperation(RouteMatchInterface $route_match) {
  return $route_match->getRouteObject()
    ->getRequirement('_workflow_access');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.