Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $route_name = Drupal::routeMatch()->getRouteName();
- /**
- * Implements hook_preprocess_page().
- *
- */
- function mytheme_preprocess_page(&$variables) {
- $variables['route_name'] = Drupal::routeMatch()->getRouteName();
- }
- {{ route_name }}
Add Comment
Please, Sign In to add comment