How to get base url and theme url in drupal 8

,


Use below code


global $base_url;
$theme_url = $base_url.'/'.Drupal::theme()->getActiveTheme()->getPath();



Related Post


Latest Post


Recent Posts Widget

Make sure to never miss a thing...

Get the latest news from the creative industry along with other creative goodies, conveniently delivered to social media.