function InlineFormErrorsThemeHooks::preprocessFormElement

Same name and namespace in other branches
  1. main core/modules/inline_form_errors/src/Hook/InlineFormErrorsThemeHooks.php \Drupal\inline_form_errors\Hook\InlineFormErrorsThemeHooks::preprocessFormElement()

Implements hook_preprocess_HOOK() for form element templates.

Attributes

#[Hook('preprocess_form_element')]

File

core/modules/inline_form_errors/src/Hook/InlineFormErrorsThemeHooks.php, line 18

Class

InlineFormErrorsThemeHooks
Hook implementations for inline_form_errors.

Namespace

Drupal\inline_form_errors\Hook

Code

public function preprocessFormElement(&$variables) : void {
  $this->setErrors($variables);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.