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

Breadcrumb

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

function FileContent::truncate

Truncates a file to a given length

Parameters

int $size length to truncate file to:

Return value

bool

2 methods override FileContent::truncate()
LargeFileContent::truncate in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/content/LargeFileContent.php
Truncates a file to a given length
StringBasedFileContent::truncate in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/content/StringBasedFileContent.php
Truncates a file to a given length

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/content/FileContent.php, line 70

Class

FileContent
Interface for actual file contents.

Namespace

org\bovigo\vfs\content

Code

public function truncate($size);

API Navigation

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