- 🇮🇳India kssundar Bengaluru
Answer is here - https://www.drupal.org/project/subgroup/issues/3376924#comment-15165706 💬 How do I programmatically retrieve the parent group from a subgroup? Active
Hi. Please can someone advise if there is a simple way to get the parent group entity of a subgroup programatically? At the moment since I haven't found an easier way I am loading all the groups of the type that are parents of my subgroup and looping through them till I find the one that parents the subgroup in question. I'm sure there has to be an easier way?
Closed: works as designed
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Answer is here - https://www.drupal.org/project/subgroup/issues/3376924#comment-15165706 💬 How do I programmatically retrieve the parent group from a subgroup? Active