public function GroupRelationManager::clearCachedGroupTypeCollections in Group 2.0.x
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 GroupRelationManagerInterface::clearCachedGroupTypeCollections
File
- src/
Plugin/ Group/ Relation/ GroupRelationManager.php, line 449
Class
- GroupRelationManager
- Manages GroupRelation plugin implementations.
Namespace
Drupal\group\Plugin\Group\RelationCode
public function clearCachedGroupTypeCollections(GroupTypeInterface $group_type = NULL) {
if (!isset($group_type)) {
$this->groupTypeInstalled = [];
}
else {
$this->groupTypeInstalled[$group_type
->id()] = NULL;
}
}