protected function WebformHandlerFormBase::processHandlerFormErrors in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Form/WebformHandlerFormBase.php \Drupal\webform\Form\WebformHandlerFormBase::processHandlerFormErrors()
Process handler webform errors in webform.
Parameters
\Drupal\Core\Form\FormStateInterface $handler_state: The webform handler webform state.
\Drupal\Core\Form\FormStateInterface &$form_state: The webform state.
1 call to WebformHandlerFormBase::processHandlerFormErrors()
- WebformHandlerFormBase::validateForm in src/
Form/ WebformHandlerFormBase.php - Form validation handler.
File
- src/
Form/ WebformHandlerFormBase.php, line 403
Class
- WebformHandlerFormBase
- Provides a base webform for webform handlers.
Namespace
Drupal\webform\FormCode
protected function processHandlerFormErrors(FormStateInterface $handler_state, FormStateInterface &$form_state) {
foreach ($handler_state
->getErrors() as $name => $message) {
$form_state
->setErrorByName($name, $message);
}
}