public function YamlFormElementInterface::checkAccessRules in YAML Form 8
Check element access (rules).
Parameters
string $operation: The operation access should be checked for. Usually "create", "update", or "view".
array $element: An element.
\Drupal\Core\Session\AccountInterface $account: The user session for which to check access.
Return value
bool TRUE is the element can be accessed by the user.
See also
\Drupal\yamlform\Entity\YamlForm::checkAccessRules
\Drupal\yamlform\Entity\YamlForm::checkAccessRule
1 method overrides YamlFormElementInterface::checkAccessRules()
- YamlFormElementBase::checkAccessRules in src/
YamlFormElementBase.php - Check element access (rules).
File
- src/
YamlFormElementInterface.php, line 246
Class
- YamlFormElementInterface
- Defines the interface for form elements.
Namespace
Drupal\yamlformCode
public function checkAccessRules($operation, array $element, AccountInterface $account = NULL);