Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
29b678c0
Commit
29b678c0
authored
Nov 01, 2014
by
alexpott
Browse files
Issue
#2278403
by Xano, JeroenT: Remove uses of form_execute_handlers().
parent
211fd408
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/includes/batch.inc
View file @
29b678c0
...
...
@@ -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
())
{
...
...
core/lib/Drupal/Core/Entity/ContentEntityForm.php
View file @
29b678c0
...
...
@@ -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
);
}
/**
...
...
core/lib/Drupal/Core/Entity/EntityForm.php
View file @
29b678c0
...
...
@@ -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
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment