Created
October 26, 2016 15:35
-
-
Save slivorezka/d8fc4ca22fd677addc13347a0d94a2c0 to your computer and use it in GitHub Desktop.
Drupal 8: get current router name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get current router name. | |
$current_router = \Drupal::routeMatch()->getRouteName(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment