You are here

public static function WebformNodeAccess::checkWebformAccess in Webform 6.x

Same name and namespace in other branches
  1. 8.5 modules/webform_node/src/Access/WebformNodeAccess.php \Drupal\webform_node\Access\WebformNodeAccess::checkWebformAccess()

Check whether the user can access a node's webform.

Parameters

string $operation: Operation being performed.

string $entity_access: Entity access rule that needs to be checked.

\Drupal\node\NodeInterface $node: A node.

\Drupal\Core\Session\AccountInterface $account: Run access checks for this account.

Return value

\Drupal\Core\Access\AccessResultInterface The access result.

2 string references to 'WebformNodeAccess::checkWebformAccess'
webform_devel.routing.yml in modules/webform_devel/webform_devel.routing.yml
modules/webform_devel/webform_devel.routing.yml
webform_node.routing.yml in modules/webform_node/webform_node.routing.yml
modules/webform_node/webform_node.routing.yml

File

modules/webform_node/src/Access/WebformNodeAccess.php, line 119

Class

WebformNodeAccess
Defines the custom access control handler for the webform node.

Namespace

Drupal\webform_node\Access

Code

public static function checkWebformAccess($operation, $entity_access, NodeInterface $node, AccountInterface $account) {
  return static::checkAccess($operation, $entity_access, $node, NULL, $account);
}