Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / web / core / modules / locale / src / Form / ExportForm.php
index ac217ee2ba7ad635f341c7fc2cfa063139926746..af3282add0774c556b2fc2232a07edf5a0550b5b 100644 (file)
@@ -14,6 +14,8 @@ use Symfony\Component\HttpFoundation\BinaryFileResponse;
 
 /**
  * Form for the Gettext translation files export form.
+ *
+ * @internal
  */
 class ExportForm extends FormBase {
 
@@ -178,7 +180,7 @@ class ExportForm extends FormBase {
       $form_state->setResponse($response);
     }
     else {
-      drupal_set_message($this->t('Nothing to export.'));
+      $this->messenger()->addStatus($this->t('Nothing to export.'));
     }
   }