Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / web / core / modules / file / src / FileStorageInterface.php
1 <?php
2
3 namespace Drupal\file;
4
5 use Drupal\Core\Entity\ContentEntityStorageInterface;
6
7 /**
8  * Defines an interface for file entity storage classes.
9  */
10 interface FileStorageInterface extends ContentEntityStorageInterface {
11
12   /**
13    * Determines total disk space used by a single user or the whole filesystem.
14    *
15    * @param int $uid
16    *   Optional. A user id, specifying NULL returns the total space used by all
17    *   non-temporary files.
18    * @param int $status
19    *   (Optional) The file status to consider. The default is to only
20    *   consider files in status FILE_STATUS_PERMANENT.
21    *
22    * @return int
23    *   An integer containing the number of bytes used.
24    */
25   public function spaceUsed($uid = NULL, $status = FILE_STATUS_PERMANENT);
26
27 }