public static function YamlFormNodeAccess::checkYamlFormAccess in YAML Form 8
Check whether the user can access a node's form.
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.
1 string reference to 'YamlFormNodeAccess::checkYamlFormAccess'
- 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 30
Class
- YamlFormNodeAccess
- Defines the custom access control handler for the form node.
Namespace
Drupal\yamlform_node\AccessCode
public static function checkYamlFormAccess($operation, $entity_access, NodeInterface $node, AccountInterface $account) {
return self::checkAccess($operation, $entity_access, $node, NULL, $account);
}