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