You are here

public function SecurityReview::setUntrustedRoles in Security Review 8

Stores the given 'untrusted_roles' setting.

Parameters

string[] $untrusted_roles: The new untrusted roles' IDs.

File

src/SecurityReview.php, line 175

Class

SecurityReview
A class containing static methods regarding the module's configuration.

Namespace

Drupal\security_review

Code

public function setUntrustedRoles(array $untrusted_roles) {
  $this->config
    ->set('untrusted_roles', $untrusted_roles);
  $this->config
    ->save();
}