drupal 8 get node from form code example Example: drupal 8 get node from form $node = $form_state->getFormObject()->getEntity();