function taxonomy_import_preprocess_page in Taxonomy Import 8
Same name and namespace in other branches
- 2.x 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';
}
}