public static function YamlFormNodeAccess::checkYamlFormSubmissionAccess in YAML Form 8
Check whether the user can access a node's form submission.
Parameters
string $operation: Operation being performed.
string $entity_access: Entity access rule that needs to be checked.
\Drupal\node\NodeInterface $node: A node.
\Drupal\yamlform\YamlFormSubmissionInterface $yamlform_submission: A form submission.
\Drupal\Core\Session\AccountInterface $account: Run access checks for this account.
Return value
\Drupal\Core\Access\AccessResultInterface The access result.
1 string reference to 'YamlFormNodeAccess::checkYamlFormSubmissionAccess'
- yamlform_node.routing.yml in modules/
yamlform_node/ yamlform_node.routing.yml - modules/yamlform_node/yamlform_node.routing.yml
File
- modules/
yamlform_node/ src/ Access/ YamlFormNodeAccess.php, line 51
Class
- YamlFormNodeAccess
- Defines the custom access control handler for the form node.
Namespace
Drupal\yamlform_node\AccessCode
public static function checkYamlFormSubmissionAccess($operation, $entity_access, NodeInterface $node, YamlFormSubmissionInterface $yamlform_submission, AccountInterface $account) {
return self::checkAccess($operation, $entity_access, $node, $yamlform_submission, $account);
}