function WorkflowDeleteAccessCheck::access

Overrides WorkflowStateTransitionOperationsAccessCheck::access

File

core/modules/workflows/src/WorkflowDeleteAccessCheck.php, line 35

Class

WorkflowDeleteAccessCheck
Provides a access checker for deleting a workflow state.

Namespace

Drupal\workflows

Code

public function access(RouteMatchInterface $route_match, AccountInterface $account) {
    @trigger_error('Using the _workflow_state_delete_access check is deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0, use _workflow_access instead. As an internal API _workflow_state_delete_access may also be removed in a minor release.', E_USER_DEPRECATED);
    return parent::access($route_match, $account);
}

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