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

Breadcrumb

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

function vfsStreamFile::write

writes an amount of data

Using this method changes the time when the file was last modified.

Parameters

string $data:

Return value

int amount of written bytes

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamFile.php, line 194

Class

vfsStreamFile
File container.

Namespace

org\bovigo\vfs

Code

public function write($data) {
    $this->lastModified = time();
    return $this->content
        ->write($data);
}

API Navigation

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