You are here

function bibcite_entity_preprocess_page in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/bibcite_entity.module \bibcite_entity_preprocess_page()

Implements hook_preprocess_page().

File

modules/bibcite_entity/bibcite_entity.module, line 339
Module hooks.

Code

function bibcite_entity_preprocess_page(&$variables) {
  $current_route = \Drupal::routeMatch()
    ->getRouteName();
  if ($current_route === 'entity.bibcite_reference.version_history') {
    $variables['#attached']['library'][] = 'bibcite_entity/reference.admin';
  }
}