public static function YamlForm::getDefaultAccessRules in YAML Form 8
Returns the form default access controls.
Return value
array A structured array containing all the form default access controls.
Overrides YamlFormInterface::getDefaultAccessRules
3 calls to YamlForm::getDefaultAccessRules()
- YamlForm::preCreate in src/
Entity/ YamlForm.php - Changes the values of an entity before it is created.
- YamlFormAccessTest::testAccessRules in src/
Tests/ YamlFormAccessTest.php - Tests form access rules.
- YamlFormNodeAccessTest::testAccessRules in modules/
yamlform_node/ src/ Tests/ YamlFormNodeAccessTest.php - Tests form node access rules.
File
- src/
Entity/ YamlForm.php, line 552
Class
- YamlForm
- Defines the form entity.
Namespace
Drupal\yamlform\EntityCode
public static function getDefaultAccessRules() {
return [
'create' => [
'roles' => [
'anonymous',
'authenticated',
],
'users' => [],
],
'view_any' => [
'roles' => [],
'users' => [],
],
'update_any' => [
'roles' => [],
'users' => [],
],
'delete_any' => [
'roles' => [],
'users' => [],
],
'purge_any' => [
'roles' => [],
'users' => [],
],
'view_own' => [
'roles' => [],
'users' => [],
],
'update_own' => [
'roles' => [],
'users' => [],
],
'delete_own' => [
'roles' => [],
'users' => [],
],
];
}