FILE_STATUS_PERMANENT

Same name in other branches
  1. 7.x includes/file.inc \FILE_STATUS_PERMANENT
  2. 8.9.x core/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

Code

const FILE_STATUS_PERMANENT = 1;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.