You are here

public function Webform::setAccessRules in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Entity/Webform.php \Drupal\webform\Entity\Webform::setAccessRules()

Sets the webform access rules.

Parameters

array $access: The structured array containing all the webform access rules.

Return value

$this

Overrides WebformInterface::setAccessRules

File

src/Entity/Webform.php, line 1056

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function setAccessRules(array $access) {
  $this->access = $access;
  return $this;
}