Created
September 21, 2016 15:02
-
-
Save markconroy/d61d4df5c96e1f7e56b981f78abb0ba7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function MYMODULE_template_preprocess_default_variables_alter(&$variables) { | |
$current_path = \Drupal::service('path.current')->getPath(); | |
$variables['current_path'] = $current_path; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment