Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / system / tests / modules / form_test / src / Form / FormTestLimitValidationErrorsForm.php
index deff0b49d4733724bac6fab2683d378618d23d4a..8f6531f5c5b3b9d14256caf964d37371da22f423 100644 (file)
@@ -7,6 +7,8 @@ use Drupal\Core\Form\FormStateInterface;
 
 /**
  * Builds a simple form with a button triggering partial validation.
+ *
+ * @internal
  */
 class FormTestLimitValidationErrorsForm extends FormBase {
 
@@ -102,7 +104,7 @@ class FormTestLimitValidationErrorsForm extends FormBase {
     // The title has not been validated, thus its value - in case of the test case
     // an empty string - may not be set.
     if (!$form_state->hasValue('title') && $form_state->hasValue('test')) {
-      drupal_set_message('Only validated values appear in the form values.');
+      $this->messenger()->addStatus('Only validated values appear in the form values.');
     }
   }