public function OgRoleManagerInterface::createPerBundleRoles in Organic groups 8
Creates the roles for the given group type, based on the default roles.
This is intended to be called after a new group type has been created.
Parameters
string $entity_type_id: The entity type ID of the group for which to create default roles.
string $bundle_id: The bundle ID of the group for which to create default roles.
Return value
\Drupal\og\Entity\OgRole[] Array with the saved OG roles that were created
1 method overrides OgRoleManagerInterface::createPerBundleRoles()
- OgRoleManager::createPerBundleRoles in src/
OgRoleManager.php - Creates the roles for the given group type, based on the default roles.
File
- src/
OgRoleManagerInterface.php, line 25
Class
- OgRoleManagerInterface
- Defines an interface for OG role manager.
Namespace
Drupal\ogCode
public function createPerBundleRoles($entity_type_id, $bundle_id);