public function OgResolvedGroupCollection::removeGroup in Organic groups 8
Removes the given group from the collection.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $group: The group to remove.
Overrides OgResolvedGroupCollectionInterface::removeGroup
File
- src/
OgResolvedGroupCollection.php, line 67
Class
- OgResolvedGroupCollection
- Contains a collection of groups discovered by OgGroupResolver plugins.
Namespace
Drupal\ogCode
public function removeGroup(ContentEntityInterface $group) {
$key = $this
->generateKey($group);
unset($this->groupInfo[$key]);
}