You are here

public function DefaultRoleEvent::deleteRole in Organic groups 8

Deletes the given default role.

Parameters

string $name: The name of the role to delete.

Overrides DefaultRoleEventInterface::deleteRole

2 calls to DefaultRoleEvent::deleteRole()
DefaultRoleEvent::offsetUnset in src/Event/DefaultRoleEvent.php
DefaultRoleEvent::setRole in src/Event/DefaultRoleEvent.php
Sets a default roles.

File

src/Event/DefaultRoleEvent.php, line 86

Class

DefaultRoleEvent
Event that is fired when default roles are compiled.

Namespace

Drupal\og\Event

Code

public function deleteRole($name) {
  unset($this->roles[$name]);
}