Skip to content
Snippets Groups Projects
Commit eca04d75 authored by Nikolay Lobachev's avatar Nikolay Lobachev
Browse files

Issue #3309814 by LOBsTerr: Call to undefined method...

Issue #3309814 by LOBsTerr: Call to undefined method Drupal\ggroup\Graph\SqlGroupGraphStorage::loadMultiple()
parent e310df2e
No related branches found
No related tags found
1 merge request!9Issue #3309814: Call to undefined method Drupal\ggroup\Graph\SqlGroupGraphStorage::loadMultiple()
......@@ -34,6 +34,13 @@ class GroupHierarchyManager implements GroupHierarchyManagerInterface {
*/
protected $membershipLoader;
/**
* The group storage.
*
* @var \Drupal\group\Entity\Storage\GroupStorage;
*/
protected $groupStorage;
/**
* Constructs a new GroupHierarchyManager.
*
......@@ -48,6 +55,7 @@ class GroupHierarchyManager implements GroupHierarchyManagerInterface {
$this->groupGraphStorage = $group_graph_storage;
$this->entityTypeManager = $entity_type_manager;
$this->membershipLoader = $membership_loader;
$this->groupStorage = $entity_type_manager->getStorage('group');
}
/**
......@@ -111,7 +119,7 @@ class GroupHierarchyManager implements GroupHierarchyManagerInterface {
*/
public function getGroupSubgroups($group_id) {
$subgroup_ids = $this->getGroupSubgroupIds($group_id);
return $this->groupGraphStorage->loadMultiple($subgroup_ids);
return $this->groupStorage->loadMultiple($subgroup_ids);
}
/**
......@@ -126,7 +134,7 @@ class GroupHierarchyManager implements GroupHierarchyManagerInterface {
*/
public function getGroupSupergroups($group_id) {
$subgroup_ids = $this->getGroupSupergroupIds($group_id);
return $this->groupGraphStorage->loadMultiple($subgroup_ids);
return $this->groupStorage->loadMultiple($subgroup_ids);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment