You are here

constant FILE_STATUS_PERMANENT in Drupal 9

Same name and namespace in other branches
  1. 8 core/includes/file.inc \FILE_STATUS_PERMANENT
  2. 6 includes/file.inc \FILE_STATUS_PERMANENT
  3. 7 includes/file.inc \FILE_STATUS_PERMANENT

Indicates that the file is permanent and should not be deleted.

Temporary files older than the system.file.temporary_maximum_age configuration value will be, if clean-up not disabled, removed during cron runs, but permanent files will not be removed during the file garbage collection process.

Deprecated

in drupal:9.3.0 and is removed from drupal:10.0.0. Use \Drupal\file\FileInterface::STATUS_PERMANENT or \Drupal\file\FileInterface::setPermanent() instead.

See also

https://www.drupal.org/node/3022147

Related topics

File

core/includes/file.inc, line 31
API for handling file uploads and server file management.

Code

const FILE_STATUS_PERMANENT = 1;