You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
905 B
19 lines
905 B
<?php
|
|
|
|
/**
|
|
* @param $variables
|
|
*/
|
|
|
|
function notification_module_pleiade_preprocess_page(&$variables){
|
|
// Add the CSS library
|
|
$variables['#attached']['library'][] = 'notification_module_pleiade/notification_module_pleiade_css';
|
|
|
|
// Add the JS library
|
|
$variables['#attached']['library'][] = 'notification_module_pleiade/notification_module_pleiade_js';
|
|
|
|
// Config form values
|
|
//$config = \Drupal::config('notification_module_pleiade.settings');
|
|
//$variables['#attached']['drupalSettings']['notification_module_pleiade']['notification_actif'] = $config->get('notification_actif');;
|
|
//$variables['#attached']['drupalSettings']['notification_module_pleiade']['notification_a_afficher'] = $config->get('notification_a_afficher');;
|
|
//$variables['#attached']['drupalSettings']['notification_module_pleiade']['gravite_du_notification'] = $config->get('gravite_du_notification');
|
|
} |