You are here

protected function GroupTypeManager::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 GroupTypeManager::getCachedGroupRelationMap()
GroupTypeManager::populateGroupRelationMap in src/GroupTypeManager.php
Populates the map of relations between group types and group content types.

File

src/GroupTypeManager.php, line 410

Class

GroupTypeManager
A manager to keep track of which entity type/bundles are OG group enabled.

Namespace

Drupal\og

Code

protected function getCachedGroupRelationMap() : ?array {
  return $this->cache
    ->get(self::GROUP_RELATION_MAP_CACHE_KEY)->data ?? NULL;
}