protected function WorkflowStateTransitionOperationsAccessCheck::getOperation in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workflows/src/WorkflowStateTransitionOperationsAccessCheck.php \Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck::getOperation()
- 10 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');
}