You are here

public function PermissionManagerInterface::getDefaultPermissions in Organic groups 8

Returns the full set of default permissions for a group and its content.

This returns both group level permissions such as 'subscribe without approval' and group content entity operation permissions such as 'edit own article content'.

Parameters

string $group_entity_type_id: The entity type ID of the group for which to return permissions.

string $group_bundle_id: The bundle ID of the group for which to return permissions.

array $group_content_bundle_ids: An array of group content bundle IDs, keyed by group content entity type ID.

string|null $role_name: Optional default role name to filter the permissions on. If omitted, all permissions will be returned.

Return value

\Drupal\og\PermissionInterface[] The array of permissions.

1 method overrides PermissionManagerInterface::getDefaultPermissions()
PermissionManager::getDefaultPermissions in src/PermissionManager.php
Returns the full set of default permissions for a group and its content.

File

src/PermissionManagerInterface.php, line 33

Class

PermissionManagerInterface
Interface for OG permission managers.

Namespace

Drupal\og

Code

public function getDefaultPermissions($group_entity_type_id, $group_bundle_id, array $group_content_bundle_ids, $role_name = NULL);