You are here

protected function GroupContentEnablerManager::getCachedGroupTypePluginMap in Group 8

Returns the cached group type plugin map.

Return value

array|null On success this will return the group type plugin map (array). On failure this should return NULL, indicating to other methods that this has not yet been defined. Success with no values should return as an empty array.

1 call to GroupContentEnablerManager::getCachedGroupTypePluginMap()
GroupContentEnablerManager::getGroupTypePluginMap in src/Plugin/GroupContentEnablerManager.php
Retrieves a list of plugin IDs per group type ID.

File

src/Plugin/GroupContentEnablerManager.php, line 433

Class

GroupContentEnablerManager
Manages GroupContentEnabler plugin implementations.

Namespace

Drupal\group\Plugin

Code

protected function getCachedGroupTypePluginMap() {
  if (!isset($this->groupTypePluginMap) && ($cache = $this
    ->cacheGet($this->groupTypePluginMapCacheKey))) {
    $this->groupTypePluginMap = $cache->data;
  }
  return $this->groupTypePluginMap;
}