You are here

public function PermissionEvent::__construct in Organic groups 8

Constructs a PermissionEvent object.

Parameters

string $group_entity_type_id: The entity type ID of the group type for which the permissions are collected.

string $group_bundle_id: The bundle ID of the group type for which the permissions are collected.

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

File

src/Event/PermissionEvent.php, line 65

Class

PermissionEvent
Event that is fired when OG permissions are compiled.

Namespace

Drupal\og\Event

Code

public function __construct($group_entity_type_id, $group_bundle_id, array $group_content_bundle_ids) {
  $this->groupEntityTypeId = $group_entity_type_id;
  $this->groupBundleId = $group_bundle_id;
  $this->groupContentBundleIds = $group_content_bundle_ids;
}