GroupRouteContentTrait still uses GroupContent entity class

Created on 7 December 2023, over 1 year ago

Problem/Motivation

\Drupal\group\Context\GroupRouteContextTrait::getBestCandidate() makes a call to \Drupal\group\Entity\GroupContent::loadByEntity() while the class \Drupal\group\Entity\GroupContent has been removed in 2.x.

Steps to reproduce

In our project this popped up on pages using layout builder.

Proposed resolution

Replace the call by $this->entityTypeManager->getStorage('group_content')->loadByEntity().

Remaining tasks

- Create MR
- Review MR
- Merge MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Closed: works as designed

Version

2.2

Component

Code

Created by

🇳🇱Netherlands ricovandevin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024