You are here

public static function OgRoleInterface::getRole in Organic groups 8

Get a role by the group's bundle and role name.

Parameters

string $entity_type_id: The group entity type ID.

string $bundle: The group bundle name.

string $role_name: The role name.

Return value

\Drupal\og\OgRoleInterface|null The OG role object, or NULL if a matching role was not found.

1 method overrides OgRoleInterface::getRole()
OgRole::getRole in src/Entity/OgRole.php
Get a role by the group's bundle and role name.

File

src/OgRoleInterface.php, line 190

Class

OgRoleInterface
Provides an interface defining an OG user role entity.

Namespace

Drupal\og

Code

public static function getRole($entity_type_id, $bundle, $role_name);