You are here

function moderation_dashboard_preprocess_block in Moderation Dashboard 8

Same name and namespace in other branches
  1. 2.0.x moderation_dashboard.module \moderation_dashboard_preprocess_block()

Implements hook_preprocess_block().

File

./moderation_dashboard.module, line 92
Contains hooks for the moderation_dashboard module.

Code

function moderation_dashboard_preprocess_block(&$variables) {
  if (strpos(\Drupal::routeMatch()
    ->getRouteName(), 'page_manager.page_view_moderation_dashboard') === 0) {
    $variables['attributes']['class'][] = 'moderation-dashboard-block';
  }
}