1 dashboard.module dashboard_preprocess_layout(&$variables)

Implements hook_preprocess_layout().

File

core/modules/dashboard/dashboard.module, line 216
Provides an administrative dashboard.

Code

function dashboard_preprocess_layout(&$variables) {
  /* @var Layout $layout */
  $layout = $variables['layout'];
  if (is_a($layout, 'Layout') && $layout->hasContexts(array('dashboard'))) {
    backdrop_add_library('dashboard', 'dashboard');
    $variables['classes'][] = 'dashboard';
  }
}