protected function GroupTypeManager::refreshGroupMap in Organic groups 8
Refreshes the groupMap property with currently configured groups.
2 calls to GroupTypeManager::refreshGroupMap()
- GroupTypeManager::addGroup in src/
GroupTypeManager.php - Declares a bundle of an entity type as being an OG group.
- GroupTypeManager::getGroupMap in src/
GroupTypeManager.php - Returns the group map.
File
- src/
GroupTypeManager.php, line 365
Class
- GroupTypeManager
- A manager to keep track of which entity type/bundles are OG group enabled.
Namespace
Drupal\ogCode
protected function refreshGroupMap() {
$group_map = $this->configFactory
->get(static::SETTINGS_CONFIG_KEY)
->get(static::GROUPS_CONFIG_KEY);
$this->groupMap = !empty($group_map) ? $group_map : [];
}