You are here

protected function WorkflowStateTransitionOperationsAccessCheck::getOperation in Drupal 8

Same name and namespace in other branches
  1. 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.
1 method overrides WorkflowStateTransitionOperationsAccessCheck::getOperation()
WorkflowDeleteAccessCheck::getOperation in core/modules/workflows/src/WorkflowDeleteAccessCheck.php
Get the operation that will be used for the access check

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');
}