Programmatically load node edit form I'm able to load node create forms like so

$node    = \Drupal\node\Entity\Node::create(['type' =&gt; 'avenue']);
$content = \Drupal::service('entity.form_builder')-&gt;getForm($node);

return $content;


However what if I want to load an edit form for a pre-existing node? I looked on this page https://api.drupal.org/api/drupal/core!modules!node!src!Entity!Node.php/class/Node/8.2.x but I can't find anything that would relate to the edit form. Is there a way to load the edit form for a specific node?
Yes, on the linked page you would find Node::load() to get a pre-existing node:

$node    = \Drupal\node\Entity\Node::load($nid);
$content = \Drupal::service('entity.form_builder')-&gt;getForm($node);

return $content;