You are here

public function GroupTypeManager::resetGroupMap in Organic groups 8

Resets the cached group map.

Call this after adding or removing a group type.

Overrides GroupTypeManagerInterface::resetGroupMap

2 calls to GroupTypeManager::resetGroupMap()
GroupTypeManager::removeGroup in src/GroupTypeManager.php
Removes an entity type instance as being an OG group.
GroupTypeManager::reset in src/GroupTypeManager.php
Resets all locally stored data.

File

src/GroupTypeManager.php, line 327

Class

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

Namespace

Drupal\og

Code

public function resetGroupMap() {
  $this->groupMap = [];
}