You are here

public function GroupTypeManager::resetGroupRelationMap in Organic groups 8

Resets the cached group relation map.

Call this after making a change to the relationship between a group type and a group content type.

Overrides GroupTypeManagerInterface::resetGroupRelationMap

1 call to GroupTypeManager::resetGroupRelationMap()
GroupTypeManager::reset in src/GroupTypeManager.php
Resets all locally stored data.

File

src/GroupTypeManager.php, line 334

Class

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

Namespace

Drupal\og

Code

public function resetGroupRelationMap() {
  $this->groupRelationMap = [];
  $this->cache
    ->delete(self::GROUP_RELATION_MAP_CACHE_KEY);
}