I created a node programmatically with the following code.
$data = array(
'type' => 'inception_article',
'title' => $msg->name,
'body' => array(
'value' => $msg->body,
'format' => 'full_html'
)
);
$node = Node::create($data);
$node->save();
I would now also like to create the menu link for the node, but I cannot figure out how to do that in Drupal 8.
How can I programmatically create a menu link for a node I create?