You are here

public function DefaultRoleEventInterface::getRole in Organic groups 8

Returns a single default role.

Parameters

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

Return value

\Drupal\og\OgRoleInterface The OgRole entity.

Throws

\InvalidArgumentException Thrown when the role with the given name does not exist.

1 method overrides DefaultRoleEventInterface::getRole()
DefaultRoleEvent::getRole in src/Event/DefaultRoleEvent.php
Returns a single default role.

File

src/Event/DefaultRoleEventInterface.php, line 34

Class

DefaultRoleEventInterface
Interface for DefaultRoleEvent classes.

Namespace

Drupal\og\Event

Code

public function getRole($name);