You are here

public function OgRoleManagerInterface::getDefaultRoles in Organic groups 8

Returns the default roles.

Return value

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

1 method overrides OgRoleManagerInterface::getDefaultRoles()
OgRoleManager::getDefaultRoles in src/OgRoleManager.php
Returns the default roles.

File

src/OgRoleManagerInterface.php, line 35

Class

OgRoleManagerInterface
Defines an interface for OG role manager.

Namespace

Drupal\og

Code

public function getDefaultRoles();