Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

iGrowl

81 sites Security covered
View on drupal.org

This module makes the iGrowl alert library available for use within Drupal. It allows you to create custom JavaScript alerts or trigger alerts through AJAX responses.

This module makes the iGrowl library available for use from within Drupal, enabling you to create iGrowl alerts from either your own custom javascript code or by using an included AJAX command function to spawn an alert.

See a demo here!

Dependencies

Drupal 8

Installation

- Download the animate.css zip file and unzip to /libraries/animate
- Download the iGrowl zip file and unzip to /libraries/igrowl
- Enable the iGrowl module
- Clear all cache, the status report page should indicate both libraries are included successfully

The libraries path is in your Drupal root, outside of /core. Do not place it in /core.

Usage

In a custom theme or module, you can spawn an iGrowl alert within your javascript by invoking it directly and providing it whatever options you want to use:

$.iGrowl({
 message: "Your message here",
})

This module also defines a custom AJAX command, so you can leverage iGrowl from an AJAX response like so:

use Drupal\igrowl\Ajax\GrowlCommand;

// controller or form code here...

$options = GrowlCommand::defaultOptions();
$options['title'] = 'Excellent!';
$options['message'] = 'We have added ' . $foo . ' ' . $bar .' to your order!';
$options['type'] = 'success';
$options['icon'] = 'feather-circle-check';

$response = new AjaxResponse();
$response->addCommand(new GrowlCommand($options));
return $response;

GrowlCommand::defaultOptions() returns an array of overrideable iGrowl options, like type, icon, message, title and more.

You can do this from either the #ajax property of a form item (the callback can return an AjaxResponse), or you can create routes in your module. The router.yml may look like this as a basic example:

mymodule.growl:
  path: '/mymodule/growl'
  defaults:
    _controller: '\Drupal\mymodule\Controller\MyModuleController::growl'
  requirements:
    _permission: 'access content'

And the corresponding controller:

namespace Drupal\mymodule\Controller;

use Drupal\Core\Ajax\AjaxResponse;
use Drupal\Core\Controller\ControllerBase;
use Drupal\igrowl\Ajax\GrowlCommand;

class MyModuleController extends ControllerBase {
  public function growl() {
    $options = GrowlCommand::defaultOptions();
    $options['message'] = 'This is a message.';
    $options['title'] = 'Hello';
    $options['icon'] = 'feather-check';
    $options['type'] = 'success';

    $response = new AjaxResponse();
    $response->addCommand(new GrowlCommand($options));
    return $response;
  }
}

Depending on your use case, you may have specific growls, or you may make a flexible generic one. It's up to you.

You will also need to attach the libraries to your theme or module. You will likely want it attached in hook_preprocess_page:

$variables['#attached']['library'][] = 'igrowl/command';
$variables['#attached']['library'][] = 'igrowl/icons.feather';

The second library is the icon set. You have 4 options to pick from:

  • icons.feather
  • icons.lineicons
  • icons.steadysets
  • icons.vicons

You can preview all option and icon types on the iGrowl demo page at http://catc.github.io/iGrowl.

Where would I use this?

If you're looking to implement AJAX in your site, for example, a Drupal Commerce site - you can leverage iGrowl to report back action status after submitting forms or clicking buttons (i.e. add to cart, remove from cart, update billing info, etc).

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
3 days ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
2.0.1 Stable Aug 20, 2026