public property File::$status

A field indicating the status of the file.

Two status are defined in core: temporary (0) and permanent (1). Temporary files older than DRUPAL_MAXIMUM_TEMP_FILE_AGE will be removed during a cron run.

Type: integer

File

drupal/core/modules/file/lib/Drupal/file/Plugin/Core/Entity/File.php, line 108
Definition of Drupal\file\Plugin\Core\Entity\File.

Class

File
Defines the file entity class.

Namespace

Drupal\file\Plugin\Core\Entity

Code

public $status;