You are here

public function Upload::__construct in UEditor - 百度编辑器 8

构造函数

Parameters

string $fileField 表单名称:

array $config 配置项:

bool $base64 是否解析base64编码,可省略。若开启,则$fileField代表的是base64编码的字符串表单名:

File

src/Uploader/Upload.php, line 57

Class

Upload
UEditor编辑器通用上传类

Namespace

Drupal\ueditor\Uploader

Code

public function __construct($config, $request) {
  $this->config = $config;
  $this->request = $request;
  $this->fileField = $this->config['fieldName'];
  $this->global_settings = \Drupal::config('ueditor.settings')
    ->get('ueditor_global_settings');
}