📌  相关文章
📜  Drupal 8 获取页面节点当前路径 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:28.093000             🧑  作者: Mango

代码示例1
// Get current path.
$current_path = \Drupal::service('path.current')->getPath();
$path_alias = \Drupal::service('path.alias_manager')->getAliasByPath($current_path);