ContentEntityInterface::getBundleEntity is not available in Drupal 10
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3582197. --> Reported by: [sjerdo](https://www.drupal.org/user/3495403) Related to !29 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>This module supports Drupal 10, but uses a method only available since Drupal 11.x: <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/drupal/issues/2699835" title="Status: Closed (fixed)">#2699835: Add a method to ContentEntityBase for getting its Bundle entity</a></span> in <a href="https://git.drupalcode.org/project/search_api_vragen_ai/-/blob/2.0.0/src/EventSubscriber/IndexEventsSubscriber.php?ref_type=tags#L44">src/EventSubscriber/IndexEventsSubscriber.php line 44</a></p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Install Drupal 10.6 and module search_api_vragen_ai. Index a document</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3>
issue