You are here

protected function GroupRelationManager::getGroupContentTypeStorage in Group 2.0.x

Returns the group content type storage handler.

Return value

\Drupal\group\Entity\Storage\GroupContentTypeStorageInterface The group content type storage handler.

File

src/Plugin/Group/Relation/GroupRelationManager.php, line 190

Class

GroupRelationManager
Manages GroupRelation plugin implementations.

Namespace

Drupal\group\Plugin\Group\Relation

Code

protected function getGroupContentTypeStorage() {
  if (!isset($this->groupContentTypeStorage)) {
    $this->groupContentTypeStorage = $this->entityTypeManager
      ->getStorage('group_content_type');
  }
  return $this->groupContentTypeStorage;
}