public function MockFileFinder::findFile in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php \Drupal\Component\Annotation\Reflection\MockFileFinder::findFile()
- 9 core/lib/Drupal/Component/Annotation/Reflection/MockFileFinder.php \Drupal\Component\Annotation\Reflection\MockFileFinder::findFile()
Finds a class.
Parameters
string $class: The name of the class.
Return value
string|null The name of the class or NULL if not found.
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\ReflectionCode
public function findFile($class) {
return $this->filename;
}