You are here

public function GroupTypeManager::isGroupContent in Organic groups 8

Checks if the given entity bundle is group content.

This is provided as a convenient sister method to ::isGroup(). It is a simple wrapper for OgGroupAudienceHelperInterface::hasGroupAudienceField().

Parameters

string $entity_type_id: The entity type ID.

string $bundle: The bundle name.

Return value

bool TRUE if the entity bundle is group content.

Overrides GroupTypeManagerInterface::isGroupContent

File

src/GroupTypeManager.php, line 188

Class

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

Namespace

Drupal\og

Code

public function isGroupContent($entity_type_id, $bundle) {
  return $this->groupAudienceHelper
    ->hasGroupAudienceField($entity_type_id, $bundle);
}