get node path alias in twig drupal 8 code example Example: drupal twig node alias path('entity.node.canonical', {'node': node.nid})