protected function GetBundleByBundleTest::getCachedGroupRelationMap in Organic groups 8
Returns the group relation map from the cache.
Return value
array|null An associative array representing group and group content relations, or NULL if the group relation map was not found in the cache.
1 call to GetBundleByBundleTest::getCachedGroupRelationMap()
- 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 627
Class
- GetBundleByBundleTest
- Tests retrieving group content bundles by group bundles and vice versa.
Namespace
Drupal\Tests\og\Kernel\EntityCode
protected function getCachedGroupRelationMap() : ?array {
return $this->cache
->get(GroupTypeManager::GROUP_RELATION_MAP_CACHE_KEY)->data ?? NULL;
}