You are here

public function YamlFormInterface::checkAccessRules in YAML Form 8

Checks form access to an operation on a form's submission.

Parameters

string $operation: The operation access should be checked for. Usually "create", "view", "update", "delete", "purge", or "admin".

\Drupal\Core\Session\AccountInterface $account: The user session for which to check access.

\Drupal\yamlform\YamlFormSubmissionInterface|null $yamlform_submission: (optional) A form submission.

Return value

bool The access result. Returns a TRUE if access is allowed.

1 method overrides YamlFormInterface::checkAccessRules()
YamlForm::checkAccessRules in src/Entity/YamlForm.php
Checks form access to an operation on a form's submission.

File

src/YamlFormInterface.php, line 230

Class

YamlFormInterface
Provides an interface defining a form entity.

Namespace

Drupal\yamlform

Code

public function checkAccessRules($operation, AccountInterface $account, YamlFormSubmissionInterface $yamlform_submission = NULL);