function MockFileFinder::findFile

Same name in other branches
  1. 8.9.x core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php \Drupal\Component\Annotation\Reflection\MockFileFinder::findFile()
  2. 10 core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php \Drupal\Component\Annotation\Reflection\MockFileFinder::findFile()
  3. 11.x core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php \Drupal\Component\Annotation\Reflection\MockFileFinder::findFile()

Overrides ClassFinderInterface::findFile

File

core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php, line 27

Class

MockFileFinder
Defines a mock file finder that only returns a single filename.

Namespace

Drupal\Component\Annotation\Reflection

Code

public function findFile($class) {
    return $this->filename;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.