get node id in twig drupal code example Example: get node id in twig drupal {{ path('entity.node.canonical', {'node': nide.id}) }}