Get current theme path at dashboard

Permalink
Hi,
Is there a way to get active theme path at a dashboard page?

 
hutman replied on at Permalink Best Answer Reply
hutman
Depending upon if you want the theme URL or Directory you could use this

$page = Page::getByID(1);
$theme = $page->getCollectionThemeObject();
$themePath = $theme->getThemeDirectory();
$themeUrl = $theme->getThemeURL();