Modify the node title with the node ID before saving it I need to modify the node title while saving the node ID. I implemented hook_form_FORM_ID_alter() as follows.
/**
 * Implements hook_form_FORM_ID_alter()
 */
function module_name_form_form_id_alter(&amp;$form, FormStateInterface $form_state, $form_id) {
  $form['title']['#access'] = FALSE;
  $form['#entity_builders'][] = 'change_node_title';   
}

function change_node_title($entity_type, NodeInterface $node, $form, FormStateInterface $form_state) {
  $node_id = $node-&gt;nid-&gt;value; // Not getting the node details
  $node-&gt;setTitle('Custom Title -' . $node_id);
}

The node details aren't found from the #entity_builders callback.
How can modify the node title before saving it? I don't want to use any custom modules for this. I don't want to use hook_node_presave() either, as it would affect the cloned nodes.
Never tried entity_buildres but you could probably use the old and tried way of adding a submit handler 

function MODULENAME_form_alter(&amp;$form, &amp;$form_state, $form_id) { 
  // this is the create form id, edit form would be node_article_edit_form
  if($form_id == 'node_article_form') {
    $form['actions']['submit']['#submit'][] = 'MODULENAME_change_title';
  }   
}

function MODULENAME_change_title($form, $form_state) {
  $node = $form_state-&gt;getFormObject()-&gt;getEntity();
  $node-&gt;setTitle('Custom Title - ' . $node-&gt;id());
  $node-&gt;save();
}