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