You are here

function VirtualFilesystem::resolvePath in X Autoload 7.5

Same name and namespace in other branches
  1. 7.4 tests/lib/Filesystem/VirtualFilesystem.php \Drupal\xautoload\Tests\Filesystem\VirtualFilesystem::resolvePath()

Parameters

string $path:

Return value

string|bool One of self::NOTHING, self::DIR, self::FILE, or a class name for a class that is supposed to be defined in the file.

File

tests/src/Filesystem/VirtualFilesystem.php, line 140

Class

VirtualFilesystem

Namespace

Drupal\xautoload\Tests\Filesystem

Code

function resolvePath($path) {
  if (isset($this->knownPaths[$path])) {
    return $this->knownPaths[$path];
  }
  else {
    return self::NOTHING;
  }
}