You are here

public function DefaultRoleEventInterface::hasRole in Organic groups 8

Returns whether or not the given role exists.

Parameters

string $name: The name of the role for which to verify the existence.

Return value

bool TRUE if the role exists, FALSE otherwise.

1 method overrides DefaultRoleEventInterface::hasRole()
DefaultRoleEvent::hasRole in src/Event/DefaultRoleEvent.php
Returns whether or not the given role exists.

File

src/Event/DefaultRoleEventInterface.php, line 104

Class

DefaultRoleEventInterface
Interface for DefaultRoleEvent classes.

Namespace

Drupal\og\Event

Code

public function hasRole($name);