function _inline_form_errors_set_errors
Same name and namespace in other branches
- 10 core/modules/inline_form_errors/inline_form_errors.module \_inline_form_errors_set_errors()
- 9 core/modules/inline_form_errors/inline_form_errors.module \_inline_form_errors_set_errors()
- 8.9.x core/modules/inline_form_errors/inline_form_errors.module \_inline_form_errors_set_errors()
Populates form errors in the template.
File
-
core/
modules/ inline_form_errors/ inline_form_errors.module, line 10
Code
function _inline_form_errors_set_errors(&$variables) : void {
$element = $variables['element'];
if (!empty($element['#errors']) && empty($element['#error_no_message'])) {
$variables['errors'] = $element['#errors'];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.