Pull merge.
[yaffs-website] / web / core / modules / inline_form_errors / inline_form_errors.module
index d5c40b43b1465a3e08697ac0bbdfad6b8909c22a..3bacd37b93de9aab2afb84b62b20473c166111cf 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\inline_form_errors\RenderElementHelper;
 
 /**
  * Implements hook_help().
@@ -54,6 +55,13 @@ function inline_form_errors_preprocess_datetime_wrapper(&$variables) {
   _inline_form_errors_set_errors($variables);
 }
 
+/**
+ * Implements hook_element_info_alter().
+ */
+function inline_form_errors_element_info_alter(array &$info) {
+  \Drupal::classResolver(RenderElementHelper::class)->alterElementInfo($info);
+}
+
 /**
  * Populates form errors in the template.
  */