protected function GetBundleByBundleTest::cacheGroupRelationMap in Organic groups 8
Stores the group relation map in the cache.
Parameters
array $relation_data: An associative array representing group and group content relations.
1 call to GetBundleByBundleTest::cacheGroupRelationMap()
- GetBundleByBundleTest::testGetGroupContentBundleIdsByGroupBundleUsesCachedData in tests/
src/ Kernel/ Entity/ GetBundleByBundleTest.php - Tests that retrieval of group content bundle IDs uses cached data.
File
- tests/
src/ Kernel/ Entity/ GetBundleByBundleTest.php, line 637
Class
- GetBundleByBundleTest
- Tests retrieving group content bundles by group bundles and vice versa.
Namespace
Drupal\Tests\og\Kernel\EntityCode
protected function cacheGroupRelationMap(array $relation_data) : void {
$this->cache
->set(GroupTypeManager::GROUP_RELATION_MAP_CACHE_KEY, $relation_data);
}