Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LargeFileContent.php

function LargeFileContent::withKilobytes

create large file with given size in kilobyte

Parameters

int $kilobyte:

Return value

LargeFileContent

1 call to LargeFileContent::withKilobytes()
LargeFileContent::withMegabytes in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/content/LargeFileContent.php
create large file with given size in megabyte

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/content/LargeFileContent.php, line 56

Class

LargeFileContent
File content implementation to mock large files.

Namespace

org\bovigo\vfs\content

Code

public static function withKilobytes($kilobyte) {
    return new self($kilobyte * 1024);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal