diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php index 9bdf1f1..fa7d138 100644 --- a/core/lib/Drupal/Core/Form/FormBuilder.php +++ b/core/lib/Drupal/Core/Form/FormBuilder.php @@ -865,15 +865,15 @@ public function doBuildForm($form_id, &$element, FormStateInterface &$form_state /** * Method to ensure every form element pass the safe check. * - * @param array $element + * @param array $element * - The form element. - * @param FormStateInterface $form_state + * @param FormStateInterface $form_state * - The form state of the current form. * * @return array * - The form element marked as safe. */ - protected function formSafeCheck(array $element, FormStateInterface $form_state) { + public static function formSafeCheck(array $element, FormStateInterface $form_state) { // Filtering keys which are expected to contain HTML. $markup_keys = array( '#description',