Skip to content
Snippets Groups Projects

Issue #3292594: Bootstrap 5 : Components > Modal

Merged mademo requested to merge issue/ui_suite_bootstrap-3292594:3292594-bootstrap-5- into 5.0.x
All threads resolved!
Files
6
+ 24
0
<?php
declare(strict_types = 1);
namespace Drupal\ui_suite_bootstrap\HookHandler;
use Drupal\Component\Utility\Html;
/**
* Handle variables needed for the pattern.
*/
class PreprocessPatternModal {
/**
* Handle variables needed for the pattern.
*
* @param array $variables
* The preprocessed variables.
*/
public function preprocess(array &$variables): void {
$variables['modal_id'] = Html::getUniqueId('bootstrap-modal');
}
}
Loading