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

Breadcrumb

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

function vfsStreamWrapper::getContent

returns content for given path

Parameters

string $path:

Return value

vfsStreamContent

8 calls to vfsStreamWrapper::getContent()
vfsStreamWrapper::doPermChange in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
executes given permission change when necessary rights allow such a change
vfsStreamWrapper::doUnlink in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
removes a path
vfsStreamWrapper::getContentOfType in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
returns content for given path but only when it is of given type
vfsStreamWrapper::mkdir in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
creates a new directory
vfsStreamWrapper::rename in vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php
rename from one path to another

... See full list

File

vendor/mikey179/vfsstream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php, line 191

Class

vfsStreamWrapper
Stream wrapper to mock file system requests.

Namespace

org\bovigo\vfs

Code

protected function getContent($path) {
    if (null === self::$root) {
        return null;
    }
    if (self::$root->getName() === $path) {
        return self::$root;
    }
    if ($this->isInRoot($path) && self::$root->hasChild($path) === true) {
        return self::$root->getChild($path);
    }
    return null;
}

API Navigation

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