Skip to content
Snippets Groups Projects

Resolve #3462503 "Unknown method getcontents"

1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
@@ -523,9 +523,8 @@ class LearningPathMembershipController extends ControllerBase {
throw new NotFoundHttpException();
}
$content = $group->getContent();
/** @var \Drupal\group\Entity\GroupContentInterface $item */
foreach ($content as $item) {
$items = $group->getRelationships();
foreach ($item as $items) {
$entity = $item->getEntity();
$type = $entity->getEntityTypeId();
$bundle = $entity->bundle();
Loading