Created
September 14, 2017 15:43
-
-
Save gwagroves/186f12eb51c8a01c9159f285a6634e86 to your computer and use it in GitHub Desktop.
Drupal 8 get absolute path to core / module / profile
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
<?php | |
// See https://api.drupal.org/api/drupal/core%21includes%21bootstrap.inc/function/drupal_get_path/8.4.x | |
$core_path = \Drupal::service('file_system')->realpath( | |
drupal_get_path('core', '') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment