public function Permission::setRestrictAccess in Organic groups 8
Sets the access restriction.
Parameters
bool $access: Whether or not this permission is security sensitive and should only be granted to administrators.
Return value
$this
Overrides PermissionInterface::setRestrictAccess
File
- src/
Permission.php, line 149
Class
- Permission
- Base class for OG permissions.
Namespace
Drupal\ogCode
public function setRestrictAccess($access) {
$this
->set('restrict access', $access);
return $this;
}