You are here

public static function Og::addGroup in Organic groups 8

Sets an entity type instance as being an OG group.

Parameters

string $entity_type_id: The entity type.

string $bundle_id: The bundle name.

File

src/Og.php, line 285

Class

Og
A static helper class for OG.

Namespace

Drupal\og

Code

public static function addGroup($entity_type_id, $bundle_id) {
  static::groupTypeManager()
    ->addGroup($entity_type_id, $bundle_id);
}