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