Created
August 22, 2017 06:56
-
-
Save suresh-kumara-gist/90eb4b5c005cc97043d5b32c95ba677f to your computer and use it in GitHub Desktop.
drupal 8 get default theme logo full path.
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
| $config = \Drupal::config('system.theme'); | |
| $theme_settings = \Drupal::config($config->get('default') . '.settings')->get(); | |
| $variables['logo_path'] = file_create_url($theme_settings['logo']['path']); | |
| dpm( $variables['logo_path']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment