You are here

function opigno_learning_path_preprocess_breadcrumb in Opigno Learning path 8

Same name and namespace in other branches
  1. 3.x opigno_learning_path.module \opigno_learning_path_preprocess_breadcrumb()

Implements hook_preprocess_breadcrumb().

File

./opigno_learning_path.module, line 3948
Contains opigno_learning_path.module.

Code

function opigno_learning_path_preprocess_breadcrumb(&$variables) {
  $route_name = \Drupal::routeMatch()
    ->getRouteName();
  if ($route_name == 'opigno_module.module_result') {
    $variables['#cache']['contexts'][] = 'url';
  }
}