You are here

public function GroupTypeManagerInterface::addGroup in Organic groups 8

Declares a bundle of an entity type as being an OG group.

Parameters

string $entity_type_id: The entity type ID of the bundle to declare as being a group.

string $bundle_id: The bundle ID of the bundle to declare as being a group.

Throws

\InvalidArgumentException Thrown when the given bundle is already a group.

1 method overrides GroupTypeManagerInterface::addGroup()
GroupTypeManager::addGroup in src/GroupTypeManager.php
Declares a bundle of an entity type as being an OG group.

File

src/GroupTypeManagerInterface.php, line 130

Class

GroupTypeManagerInterface
Interface for services intended to help managing groups.

Namespace

Drupal\og

Code

public function addGroup($entity_type_id, $bundle_id);