- Issue created by @daletrexel
- πΊπΈUnited States daletrexel Minnesota, USA
Adding patch.
The only change needed (as far as I can tell), is to replace
\Drupal\group\Entity\GroupContent::loadByEntity($entity)
with
\Drupal\group\Entity\GroupRelationship::loadByEntity($entity)
- Status changed to Needs review
8 months ago 3:40pm 20 August 2024 - π§π·Brazil carolpettirossi Campinas - SP
Thanks for the patch @daletrexel. It helped me achieve what I needed on my project.
The scenario is:
1. The user access the node itself and not the group content URL, so, in this case, the Group is not in the URL
2. I need to add a Related Items section with content from the same groupIt would be great to have the maintainer reviewing this patch. I'll move to Needs Review.