Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / inline_form_errors / inline_form_errors.module
index d5c40b43b1465a3e08697ac0bbdfad6b8909c22a..dcb140b7a511cc90acdf9100fcca84c091ed3d1b 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\inline_form_errors\RenderElementHelper;
 
 /**
  * Implements hook_help().
@@ -54,6 +55,14 @@ 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()->getInstanceFromDefinition(RenderElementHelper::class)
+    ->alterElementInfo($info);
+}
+
 /**
  * Populates form errors in the template.
  */