You are here

public function PermissionEvent::offsetUnset in Organic groups 8

File

src/Event/PermissionEvent.php, line 235

Class

PermissionEvent
Event that is fired when OG permissions are compiled.

Namespace

Drupal\og\Event

Code

public function offsetUnset($key) {
  if ($this
    ->hasPermission($key)) {
    $this
      ->deletePermission($key);
  }
}