You are here

protected function WorkflowStateTransitionOperationsAccessCheck::getOperation in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workflows/src/WorkflowStateTransitionOperationsAccessCheck.php \Drupal\workflows\WorkflowStateTransitionOperationsAccessCheck::getOperation()
  2. 9 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\workflows

Code

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