public function OgGroupAudienceHelperInterface::hasGroupAudienceField in Organic groups 8
Returns whether the given entity bundle has a group audience field.
This can be used to determine whether the bundle is group content.
Parameters
string $entity_type_id: The entity type ID to check for the presence of group audience fields.
string $bundle_id: The bundle name to check for the presence of group audience fields.
Return value
bool TRUE if the field is a group audience type, FALSE otherwise.
1 method overrides OgGroupAudienceHelperInterface::hasGroupAudienceField()
- OgGroupAudienceHelper::hasGroupAudienceField in src/
OgGroupAudienceHelper.php - Returns whether the given entity bundle has a group audience field.
File
- src/
OgGroupAudienceHelperInterface.php, line 35
Class
- OgGroupAudienceHelperInterface
- Interface for a service that deals with group audience fields.
Namespace
Drupal\ogCode
public function hasGroupAudienceField($entity_type_id, $bundle_id);