Add message when no quick form plugins exist

This commit is contained in:
Paul Weidner 2024-01-29 20:54:04 -08:00 committed by Michael Stenta
parent 78a78b3aaa
commit 2c4953feff
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ class QuickFormAddPage extends ControllerBase {
return FALSE;
});
if (empty($plugins)) {
$render['#add_bundle_message'] = $this->t('No quick forms are available. Enable a module that provides quick forms.');
}
// Add link for each configurable plugin.
foreach ($plugins as $plugin_id => $plugin) {
$render['#bundles'][$plugin_id] = [