You are here

public function GroupTypeManager::getGroupContentBundleIdsByGroupBundle in Organic groups 8

Returns group content bundles that are referencing the given group content.

Parameters

string $group_entity_type_id: The entity type ID of the group type for which to return associated group content bundle IDs.

string $group_bundle_id: The bundle ID of the group type for which to return associated group content bundle IDs.

Return value

string[][] An array of group content bundle IDs, keyed by group content entity type ID.

Overrides GroupTypeManagerInterface::getGroupContentBundleIdsByGroupBundle

File

src/GroupTypeManager.php, line 254

Class

GroupTypeManager
A manager to keep track of which entity type/bundles are OG group enabled.

Namespace

Drupal\og

Code

public function getGroupContentBundleIdsByGroupBundle($group_entity_type_id, $group_bundle_id) {
  $group_relation_map = $this
    ->getGroupRelationMap();
  return isset($group_relation_map[$group_entity_type_id][$group_bundle_id]) ? $group_relation_map[$group_entity_type_id][$group_bundle_id] : [];
}