$form_object submit retrun response drupal code example Example: drupal 8 get form entity $entity = $form_state->getFormObject()->getEntity();