You are here

function nodejs_notify_js_settings_alter in Node.js integration 8

Implements hook_js_settings_alter().

File

nodejs_notify/nodejs_notify.module, line 14

Code

function nodejs_notify_js_settings_alter(array &$settings, AttachedAssetsInterface $assets) {
  $settings['nodejs_notify']['notification_time'] = \Drupal::config('nodejs_notify.settings')
    ->get('notification_lifetime_seconds');
}