interface FileStorageInterface
Same name and namespace in other branches
- 11.x core/modules/file/src/FileStorageInterface.php \Drupal\file\FileStorageInterface
Defines an interface for file entity storage classes.
Hierarchy
- interface \Drupal\Core\Entity\EntityStorageInterface; interface \Drupal\Core\Entity\TranslatableRevisionableStorageInterface implements \Drupal\Core\Entity\TranslatableStorageInterface, \Drupal\Core\Entity\RevisionableStorageInterface
- interface \Drupal\Core\Entity\ContentEntityStorageInterface implements \Drupal\Core\Entity\EntityStorageInterface, \Drupal\Core\Entity\TranslatableRevisionableStorageInterface
- interface \Drupal\file\FileStorageInterface implements \Drupal\Core\Entity\ContentEntityStorageInterface
- interface \Drupal\Core\Entity\ContentEntityStorageInterface implements \Drupal\Core\Entity\EntityStorageInterface, \Drupal\Core\Entity\TranslatableRevisionableStorageInterface
Expanded class hierarchy of FileStorageInterface
All classes that implement FileStorageInterface
File
-
core/
modules/ file/ src/ FileStorageInterface.php, line 10
Namespace
Drupal\fileView source
interface FileStorageInterface extends ContentEntityStorageInterface {
/**
* Determines total disk space used by a single user or the whole filesystem.
*
* @param int $uid
* Optional. A user id, specifying NULL returns the total space used by all
* non-temporary files.
* @param int $status
* (Optional) The file status to consider. The default is to only
* consider files in status FileInterface::STATUS_PERMANENT.
*
* @return int
* An integer containing the number of bytes used.
*/
public function spaceUsed($uid = NULL, $status = FileInterface::STATUS_PERMANENT);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.