You are here

public static function OgRoleInterface::loadByGroupAndName in Organic groups 8

Returns the role represented by the given group and role name.

Parameters

\Drupal\Core\Entity\EntityInterface $group: The group for which to return the role.

string $name: The role name for which to return the role.

Return value

\Drupal\og\OgRoleInterface The role.

1 method overrides OgRoleInterface::loadByGroupAndName()
OgRole::loadByGroupAndName in src/Entity/OgRole.php
Returns the role represented by the given group and role name.

File

src/OgRoleInterface.php, line 162

Class

OgRoleInterface
Provides an interface defining an OG user role entity.

Namespace

Drupal\og

Code

public static function loadByGroupAndName(EntityInterface $group, $name);