Problem/Motivation

This module supports Drupal 10, but uses a method only available since Drupal 11.x: #2699835: Add a method to ContentEntityBase for getting its Bundle entity in src/EventSubscriber/IndexEventsSubscriber.php line 44

Steps to reproduce

Install Drupal 10.6 and module search_api_vragen_ai. Index a document

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sjerdo created an issue. See original summary.

jelleglebbeek’s picture

Assigned: Unassigned » jelleglebbeek

jelleglebbeek’s picture

Status: Active » Needs review

I've created a fix for this, we'll just manually resolve the bundle entity. I've added a todo to move to the function call once D10 support is dropped eventually.

bbrala’s picture

The is a helper class for that in Drupal.

DeprecationHelper

Ypu can use that to split the code path by version.

bbrala’s picture

Status: Needs review » Needs work
jelleglebbeek’s picture

Status: Needs work » Needs review

I've used the DeprecationHelper so we can branch based on Drupal version.

bbrala’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • bbrala committed 3c4769f6 on 2.0.x authored by jelleglebbeek
    fix: #3582197 ContentEntityInterface::getBundleEntity is not available...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.