public function GroupTypeManagerInterface::getAllGroupContentBundlesByEntityType in Organic groups 8
Returns a list of all group content bundles filtered by entity type.
This will return a simple list of group content bundles. If you need information about the relations between groups and group content bundles then use getGroupRelationMap() instead.
Parameters
string $entity_type_id: Entity type ID to filter the bundles by.
Return value
string[] An array of group content bundle IDs.
Throws
\InvalidArgumentException Thrown when the passed in entity type ID does not have any group content bundles defined.
See also
\Drupal\og\GroupTypeManagerInterface::getGroupRelationMap()
1 method overrides GroupTypeManagerInterface::getAllGroupContentBundlesByEntityType()
- GroupTypeManager::getAllGroupContentBundlesByEntityType in src/
GroupTypeManager.php - Returns a list of all group content bundles filtered by entity type.
File
- src/
GroupTypeManagerInterface.php, line 86
Class
- GroupTypeManagerInterface
- Interface for services intended to help managing groups.
Namespace
Drupal\ogCode
public function getAllGroupContentBundlesByEntityType($entity_type_id);