public function MapClassLoader::findFile

Finds the path to the file where the class is defined.

Parameters

string $class The name of the class:

Return value

string|null The path, if found

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/MapClassLoader.php, line 62

Class

MapClassLoader
A class loader that uses a mapping file to look up paths.

Namespace

Symfony\Component\ClassLoader

Code

public function findFile($class) {
  if (isset($this->map[$class])) {
    return $this->map[$class];
  }
}