You are here

public static function Message::createMessageByFile in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

1 call to Message::createMessageByFile()
ActionUploadRemoveFile::run in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadRemoveFile.php

File

vendor/edsdk/file-uploader-server-php/src/lib/action/resp/Message.php, line 74

Class

Message

Namespace

EdSDK\FileUploaderServer\lib\action\resp

Code

public static function createMessageByFile($code, $file) {
  $msg = new Message();
  $msg->code = $code;
  $msg->files = [];
  $msg->files[] = $file;
  return $msg;
}