You are here

public function DefaultRoleEvent::offsetExists in Organic groups 8

File

src/Event/DefaultRoleEvent.php, line 125

Class

DefaultRoleEvent
Event that is fired when default roles are compiled.

Namespace

Drupal\og\Event

Code

public function offsetExists($key) {
  return $this
    ->hasRole($key);
}