Commit 0a045ce9 authored by catch's avatar catch
Browse files

Issue #2940025 by andypost, nickolaj, quietone: Remove deprecated functions from file module

parent b5c3f1b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
/**
 * An event during file upload that lets subscribers sanitize the filename.
 *
 * @see _file_save_upload_single()
 * @see \Drupal\file\Upload\FileUploadHandler::handleFileUpload()
 * @see \Drupal\file\Plugin\rest\resource\FileUploadResource::prepareFilename()
 * @see \Drupal\system\EventSubscriber\SecurityFileUploadEventSubscriber::sanitizeName()
 */
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ public function move($source, $destination, $replace = self::EXISTS_RENAME);
  /**
   * Saves a file to the specified destination without invoking file API.
   *
   * This function is identical to file_save_data() except the file will not be
   * This function is identical to writeData() except the file will not be
   * saved to the {file_managed} table and none of the file_* hooks will be
   * called.
   *
+4 −480

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -278,7 +278,7 @@ public function post(Request $request, $entity_type_id, $bundle, $field_name) {

    // Validate the file against field-level validators first while the file is
    // still a temporary file. Validation is split up in 2 steps to be the same
    // as in _file_save_upload_single().
    // as in \Drupal\file\Upload\FileUploadHandler::handleFileUpload().
    // For backwards compatibility this part is copied from ::validate() to
    // leave that method behavior unchanged.
    // @todo Improve this with a file uploader service in
+0 −90

File deleted.

Preview size limit exceeded, changes collapsed.

Loading