You are here

public function WebformAccessRulesManagerInterface::getAccessRules in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/WebformAccessRulesManagerInterface.php \Drupal\webform\WebformAccessRulesManagerInterface::getAccessRules()

Retrieve a list of access rules from a webform.

Parameters

\Drupal\webform\WebformInterface $webform: Webform whose access rules to retrieve.

Return value

array Associative array of access rules contained in the provided webform. Keys are operation names whereas values are sub arrays with the following structure:

  • roles: (array) Array of roles that should have access to this operation
  • users: (array) Array of UIDs that should have access to this operation
  • permissions: (array) Array of permissions that should grant access to this operation
1 method overrides WebformAccessRulesManagerInterface::getAccessRules()
WebformAccessRulesManager::getAccessRules in src/WebformAccessRulesManager.php
Retrieve a list of access rules from a webform.

File

src/WebformAccessRulesManagerInterface.php, line 69

Class

WebformAccessRulesManagerInterface
Interface of webform access rules manager.

Namespace

Drupal\webform

Code

public function getAccessRules(WebformInterface $webform);