You are here

function taxonomy_import_preprocess_page in Taxonomy Import 2.x

Same name and namespace in other branches
  1. 8 taxonomy_import.module \taxonomy_import_preprocess_page()

Function implements hook_preprocess_page().

File

./taxonomy_import.module, line 13
This module allows create taxonomy.

Code

function taxonomy_import_preprocess_page(&$variables) {
  $variables['page']['#cache']['contexts'][] = 'route';
  $route_b = \Drupal::routeMatch()
    ->getRouteName();

  // For custom form.
  if ($route_b == 'taxonomy_import.settings') {
    $variables['#attached']['library'][] = 'taxonomy_import/common-styling';
  }
}