How do I get the active theme path in a view? I need the active theme path in a view to use it in a field rewrite to display that particular image from my theme images folder.

How can I achieve this?
You can do by

global $base_url;
$theme = \Drupal::theme()-&gt;getActiveTheme();
$default_image_url = $base_url.'/'. $theme-&gt;getPath() .'/images/image.jpg';