diff --git a/core/lib/Drupal/Core/Entity/ContentEntityForm.php b/core/lib/Drupal/Core/Entity/ContentEntityForm.php index 35834ab..a667790 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityForm.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityForm.php @@ -50,6 +50,11 @@ public static function create(ContainerInterface $container) { */ public function form(array $form, FormStateInterface $form_state) { $form = parent::form($form, $form_state); + + // Content entity forms only need to rebuild the entity in the validation + // and the submit handler. + unset($form['#after_build']); + $this->getFormDisplay($form_state)->buildForm($this->entity, $form, $form_state); // Allow modules to act before and after form language is updated. $form['#entity_builders']['update_form_langcode'] = [$this, 'updateFormLangcode'];