How can I change the value of a field in node / [id] / edit?
I alter my forms with the following: 

function mymodule_form_test_edit_form_alter(&amp;$form, FormStateInterface $form_state, $form_id) {
  // code here...
}