On April 5, 2020 . By CodimTh Category: Web Drupal Code snippet that can be used to rebuild form after submit in Drupal 8. if ($form_state->getErrors()){ \Drupal::messenger()->addError('show errors'); $form_state->setRebuild(); } Tags : Drupal 8 Form API Previous PostGet taxonomy terms of a vocabulary in Drupal 8Next PostLoad Taxonomy Terms by Level in drupal 8 Comments Add new comment Your name Subject Comment About text formats Restricted HTML Leave this field blank
Comments