This module provides a bootstrap modal.
Compatible with bootstrap 4 and bootstrap 5 themes.

Installation

By composer (Recommended):

composer require drupal/bootstrap4_modal

Usage

<a href="[some-links]" class="use-ajax" data-dialog-type="bootstrap4_modal" data-dialog-options="{&quot;dialogClasses&quot;:&quot;modal-dialog-centered&quot;,&quot;dialogShowHeader&quot;:false}">Open in Bootstrap Modal</a>

Available Dialog Options

$defaultOptions = [
 autoOpen: true,
 dialogClasses: '',
 dialogShowHeader: true,
 dialogShowHeaderTitle: true,
 buttonClass: 'btn',
 buttonPrimaryClass: 'btn-primary'
];

Provides Bootstrap Modal Display for Entity Browser

https://www.drupal.org/project/entity_browser

Project information

Releases

2.2.2 Stable release covered by the Drupal Security Team released 14 March 2026
Works with Drupal: ^9 || ^10 || ^11
Install:

Development version: 2.x-dev updated 14 Mar 2026 at 08:52 UTC