public function FileStorageInterface::spaceUsed in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/file/src/FileStorageInterface.php \Drupal\file\FileStorageInterface::spaceUsed()
Determines total disk space used by a single user or the whole filesystem.
Parameters
int $uid: Optional. A user id, specifying NULL returns the total space used by all non-temporary files.
int $status: (Optional) The file status to consider. The default is to only consider files in status FILE_STATUS_PERMANENT.
Return value
int An integer containing the number of bytes used.
1 method overrides FileStorageInterface::spaceUsed()
- FileStorage::spaceUsed in core/
modules/ file/ src/ FileStorage.php - Determines total disk space used by a single user or the whole filesystem.
File
- core/
modules/ file/ src/ FileStorageInterface.php, line 30 - Contains \Drupal\file\FileStorageInterface.
Class
- FileStorageInterface
- Defines an interface for file entity storage classes.
Namespace
Drupal\fileCode
public function spaceUsed($uid = NULL, $status = FILE_STATUS_PERMANENT);