public function WebformAccessRulesManagerInterface::getAccessRulesInfo in Webform 6.x
Same name and namespace in other branches
- 8.5 src/WebformAccessRulesManagerInterface.php \Drupal\webform\WebformAccessRulesManagerInterface::getAccessRulesInfo()
Collect metadata on known access rules.
Return value
array Array that describes all known access rules. It will be keyed by access rule machine-name and will contain sub arrays with the following structure:
- title: (string) Human-friendly translated string that describes the meaning of this access rule.
- description: (array) Renderable array that explains what this access rule stands for. Defaults to an empty array.
- roles: (string[]) Array of role IDs that should be granted this access rule by default. Defaults to an empty array.
- permissions: (string[]) Array of permissions that should be granted this access rule by default. Defaults to an empty array.
1 method overrides WebformAccessRulesManagerInterface::getAccessRulesInfo()
- WebformAccessRulesManager::getAccessRulesInfo in src/
WebformAccessRulesManager.php - Collect metadata on known access rules.
File
- src/
WebformAccessRulesManagerInterface.php, line 106
Class
- WebformAccessRulesManagerInterface
- Interface of webform access rules manager.
Namespace
Drupal\webformCode
public function getAccessRulesInfo();