diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index cf8ec65..ca4e887 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -408,11 +408,11 @@ public static function validateManagedFile(&$element, FormStateInterface $form_s // this item were to be deleted. When files that are no longer in use // are automatically marked as temporary (now disabled by default), // it is not safe to reference a permanent file without usage. Adding - // removing it again would delete the file, but it is unknown if and - // where it is currently referenced. However, when files are not - // marked temporary (and then removed) automatically, it is safe to - // add and remove usages, as it would simply return to the current - // state. + // a usage and then later on removing it again would delete the file, + // but it is unknown if and where it is currently referenced. However, + // when files are not marked temporary (and then removed) + // automatically, it is safe to add and remove usages, as it would + // simply return to the current state. // @see https://www.drupal.org/node/2891902 if ($file->isPermanent() && \Drupal::config('file.settings')->get('make_unused_managed_files_temporary')) { $references = static::fileUsage()->listUsage($file);