Call to undefined method Drupal\Core\Render\Renderer::renderInIsolation()

Created on 12 December 2024, 27 days ago

Problem/Motivation

I have Drupal 10.2 and I updated this module to version 2.2.0. After this I started testing modals and it's not working because the code trying call to the not exist method in Drupal 10.2
```php
Error: Call to undefined method Drupal\Core\Render\Renderer::renderInIsolation() in Drupal\bootstrap4_modal\Render\MainContent\Bootstrap4ModalRenderer->renderResponse() (line 35 of /var/www/web/modules/contrib/bootstrap4_modal/src/Render/MainContent/Bootstrap4ModalRenderer.php).
```

Steps to reproduce

1. Install Drupal 10.2
2. Install bootstrap4_modal 2.2.0
3. Check a modal

Proposed resolution

Change the core requirement version or rollback to the `renderPlain` method because that will be removed in Drupal 12.

🐛 Bug report
Status

Active

Version

2.2

Component

Code

Created by

🇵🇱Poland adrianliegmann

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024