Created
September 22, 2016 15:23
-
-
Save init90/abe598d20e7d26dc7d925cec71d258e0 to your computer and use it in GitHub Desktop.
Drupal 8 get current route 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
$route_name = \Drupal::service('current_route_match')->getRouteName(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment