Skip to content
Snippets Groups Projects

Resolve #3238915 "Refactor if feasible"

2 files
+ 120
0
Compare changes
  • Side-by-side
  • Inline
Files
2
  • db43eba8
    Issue #3165010 by dpi, acbramley, tim.plunkett, larowlan: Using the layout... · db43eba8
    Alex Pott authored
    Issue #3165010 by dpi, acbramley, tim.plunkett, larowlan: Using the layout builder discard changes button should ignore any input and skip validation
@@ -198,6 +198,8 @@ protected function actions(array $form, FormStateInterface $form_state) {
'#value' => $this->t('Discard changes'),
'#submit' => ['::redirectOnSubmit'],
'#redirect' => 'discard_changes',
// Discard is not dependent on form input.
'#limit_validation_errors' => [],
];
// @todo This button should be conditionally displayed, see
// https://www.drupal.org/node/2917777.
Loading