Pull merge.
[yaffs-website] / web / core / lib / Drupal / Core / FileTransfer / Form / FileTransferAuthorizeForm.php
index 2adbd1f0f0b78ed1f62b34cb3a9117518afe3044..07b99b7d389935d5602472a0f93266b6fac7bcec 100644 (file)
@@ -10,6 +10,8 @@ use Symfony\Component\HttpFoundation\Response;
 
 /**
  * Provides the file transfer authorization form.
+ *
+ * @internal
  */
 class FileTransferAuthorizeForm extends FormBase {
 
@@ -50,7 +52,7 @@ class FileTransferAuthorizeForm extends FormBase {
   public function buildForm(array $form, FormStateInterface $form_state) {
     // Get all the available ways to transfer files.
     if (empty($_SESSION['authorize_filetransfer_info'])) {
-      drupal_set_message($this->t('Unable to continue, no available methods of file transfer'), 'error');
+      $this->messenger()->addError($this->t('Unable to continue, no available methods of file transfer'));
       return [];
     }
     $available_backends = $_SESSION['authorize_filetransfer_info'];