Created
September 12, 2017 17:59
-
-
Save gwagroves/5e0e39237fca99ad7abe9b05f4fe6ecc to your computer and use it in GitHub Desktop.
Drupal 8 get module path
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 | |
$module_handler = \Drupal::service('module_handler'); | |
$path = $module_handler->getModule('your_module')->getPath(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment