function WorkflowStateTransitionOperationsAccessCheck::getOperation
Same name in other branches
- 8.9.x core/modules/workflows/src/WorkflowStateTransitionOperationsAccessCheck.php \Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck::getOperation()
- 10 core/modules/workflows/src/WorkflowStateTransitionOperationsAccessCheck.php \Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck::getOperation()
- 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.
1 call to WorkflowStateTransitionOperationsAccessCheck::getOperation()
- WorkflowStateTransitionOperationsAccessCheck::access in core/
modules/ workflows/ src/ WorkflowStateTransitionOperationsAccessCheck.php - Checks access for operations of workflow states and transitions.
File
-
core/
modules/ workflows/ src/ WorkflowStateTransitionOperationsAccessCheck.php, line 80
Class
- WorkflowStateTransitionOperationsAccessCheck
- Provides an access check for state and transition operations.
Namespace
Drupal\workflowsCode
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.