Drupal 8 Dapatkan Jalur Arus Node Halaman
// Get current path.
$current_path = \Drupal::service('path.current')->getPath();
$path_alias = \Drupal::service('path.alias_manager')->getAliasByPath($current_path);
Gleaming Gannet