public function GroupContentEnablerManager::clearCachedGroupTypeCollections in Group 8
Clears the static per group type plugin collection cache.
Parameters
\Drupal\group\Entity\GroupTypeInterface $group_type: (optional) The group type to clear the cache for. Leave blank to clear the cache for all group types.
Overrides GroupContentEnablerManagerInterface::clearCachedGroupTypeCollections
File
- src/
Plugin/ GroupContentEnablerManager.php, line 454
Class
- GroupContentEnablerManager
- Manages GroupContentEnabler plugin implementations.
Namespace
Drupal\group\PluginCode
public function clearCachedGroupTypeCollections(GroupTypeInterface $group_type = NULL) {
if (!isset($group_type)) {
$this->groupTypeInstalled = [];
}
else {
$this->groupTypeInstalled[$group_type
->id()] = NULL;
}
}