get node id in twig drupal

To get the node ID in Twig in Drupal, you can use the following code snippet:

{{ }}

This will output the node ID in your Twig template.

Please note that the code provided assumes that you are using Drupal 8 or Drupal 9, as Twig is the default templating engine in these versions. If you are using an older version of Drupal, the syntax may be different.