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

Breadcrumb

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

function vfsStreamFile::read

reads the given amount of bytes from content

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

Parameters

int $count:

Return value

string

File

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

Class

vfsStreamFile
File container.

Namespace

org\bovigo\vfs

Code

public function read($count) {
    $this->lastAccessed = time();
    return $this->content
        ->read($count);
}

API Navigation

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