What is the twig template name for a node edit form? In Drupal 8, what is the twig template name for a node edit form for a custom content type called for example "device". 


For a default node we use node-edit-form.html.twig
So what is the edit template name for a custom content type ?


I would appreciate your help.
Thank you !
You could have a look at this comment. It suggests adding a theme suggestion like this:


  This feels hacky, but it's the best I can come up with. First add this
  code to your admin .theme file (likely a sub-theme of Seven):

function NAMEOFTHEME_theme_suggestions_alter(array &amp;$suggestions, array $variables, $hook) {
   if ($hook == 'node_edit_form') {
     if ($node = \Drupal::routeMatch()-&gt;getParameter('node')) {
      $content_type = $node-&gt;bundle();
     }
     else {
       $current_path = \Drupal::service('path.current')-&gt;getPath();
       $path_args = explode('/', $current_path);
       $content_type = $path_args[3];
     }
     $suggestions[] = 'node_edit_form__' . $content_type;
   } 
 }

  
  Next, create twig templates in your theme's template directory in the form
  of node-edit-form--NODE-TYPE-SEPARATED-WITH-DASHES.html.twig.