Commit 274ef489 authored by slashrsm's avatar slashrsm Committed by Primsi

Issue #2862881 by slashrsm: Fix Non-static method...

Issue #2862881 by slashrsm: Fix Non-static method Drupal\Core\Plugin\PluginBase::t() should not be called statically Drupal\dropzonejs\Element\DropzoneJs::processDropzoneJs()
parent 9e1f51b7
......@@ -7,6 +7,7 @@ use Drupal\Component\Utility\Html;
use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Render\Element\FormElement;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\Url;
/**
......@@ -86,7 +87,7 @@ class DropzoneJs extends FormElement {
if (!\Drupal::currentUser()->hasPermission('dropzone upload files')) {
$element['#access'] = FALSE;
drupal_set_message(self::t("You don't have sufficent permissions to use the DropzoneJS uploader. Contact your system administrator"), 'warning');
drupal_set_message(new TranslatableMarkup("You don't have sufficent permissions to use the DropzoneJS uploader. Contact your system administrator"), 'warning');
}
return $element;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment