You are here

function status_messages_preprocess in Status Messages 8

Same name and namespace in other branches
  1. 8.4 status_messages.module \status_messages_preprocess()
  2. 8.2 status_messages.module \status_messages_preprocess()
  3. 8.3 status_messages.module \status_messages_preprocess()

Implements hook_preprocess().

File

./status_messages.module, line 43
This is the module to make simple status messages.

Code

function status_messages_preprocess(&$variables) {
  $config = \Drupal::config('status_messages.status_messages');
  $variables['time'] = $config
    ->get('time');
  $variables['#attached']['drupalSettings']['time'] = $variables['time'];
}