Commit 29b678c0 authored by alexpott's avatar alexpott
Browse files

Issue #2278403 by Xano, JeroenT: Remove uses of form_execute_handlers().

parent 211fd408
......@@ -270,8 +270,8 @@ function _batch_process() {
// through the remaining sets, marking them 'successfully processed'
// along the way, until we find a set that contains operations.
// _batch_next_set() executes form submit handlers stored in 'control'
// sets (see form_execute_handlers()), which can in turn add new sets to
// the batch.
// sets (see \Drupal::service('form_submitter')), which can in turn add new
// sets to the batch.
$set_changed = FALSE;
$old_set = $current_set;
while (empty($current_set['count']) && ($current_set['success'] = TRUE) && _batch_next_set()) {
......
......@@ -65,7 +65,7 @@ public function validate(array $form, FormStateInterface $form_state) {
// @todo Remove this.
// Execute legacy global validation handlers.
$form_state->setValidateHandlers([]);
form_execute_handlers('validate', $form, $form_state);
\Drupal::service('form_validator')->executeValidateHandlers($form, $form_state);
}
/**
......
......@@ -226,7 +226,7 @@ public function validate(array $form, FormStateInterface $form_state) {
// @todo Remove this.
// Execute legacy global validation handlers.
$form_state->setValidateHandlers([]);
form_execute_handlers('validate', $form, $form_state);
\Drupal::service('form_validator')->executeValidateHandlers($form, $form_state);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment