You are here

public function OgRoleManagerInterface::getRequiredDefaultRoles in Organic groups 8

Returns the roles which every group type requires.

This provides the 'member' and 'non-member' roles. These are hard coded because they are strictly required and should not be altered.

Return value

\Drupal\og\Entity\OgRole[] An associative array of (unsaved) required OgRole entities, keyed by role name. These are populated with the basic properties: name, label and role_type.

1 method overrides OgRoleManagerInterface::getRequiredDefaultRoles()
OgRoleManager::getRequiredDefaultRoles in src/OgRoleManager.php
Returns the roles which every group type requires.

File

src/OgRoleManagerInterface.php, line 48

Class

OgRoleManagerInterface
Defines an interface for OG role manager.

Namespace

Drupal\og

Code

public function getRequiredDefaultRoles();