X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Flocale%2Fsrc%2FForm%2FExportForm.php;h=af3282add0774c556b2fc2232a07edf5a0550b5b;hb=9424afc6c1f518c301bf87a23c047d1873435d05;hp=ac217ee2ba7ad635f341c7fc2cfa063139926746;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/locale/src/Form/ExportForm.php b/web/core/modules/locale/src/Form/ExportForm.php index ac217ee2b..af3282add 100644 --- a/web/core/modules/locale/src/Form/ExportForm.php +++ b/web/core/modules/locale/src/Form/ExportForm.php @@ -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.')); } }