You are here

protected function GroupContentEnablerManager::getGroupTypeStorage in Group 8

Returns the group type storage handler.

Return value

\Drupal\Core\Config\Entity\ConfigEntityStorageInterface The group type storage handler.

File

src/Plugin/GroupContentEnablerManager.php, line 182

Class

GroupContentEnablerManager
Manages GroupContentEnabler plugin implementations.

Namespace

Drupal\group\Plugin

Code

protected function getGroupTypeStorage() {
  if (!isset($this->groupTypeStorage)) {
    $this->groupTypeStorage = $this->entityTypeManager
      ->getStorage('group_type');
  }
  return $this->groupTypeStorage;
}