public function Permission::setDefaultRoles in Organic groups 8
Sets the default roles.
Parameters
array $default_roles: The default roles.
Return value
$this
Overrides PermissionInterface::setDefaultRoles
File
- src/
Permission.php, line 134
Class
- Permission
- Base class for OG permissions.
Namespace
Drupal\ogCode
public function setDefaultRoles(array $default_roles) {
$this
->set('default roles', $default_roles);
return $this;
}