📌  相关文章
📜  drupal 8 获取主题路径 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:54.898000             🧑  作者: Mango

代码示例1
$themeHandler = \Drupal::service('theme_handler');
$themePath = $themeHandler->getTheme($themeHandler->getDefault())->getPath();