public function ClassFinderInterface::findFile in Drupal 9
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.
2 methods override ClassFinderInterface::findFile()
- ClassFinder::findFile in core/
lib/ Drupal/ Component/ ClassFinder/ ClassFinder.php - Finds a class.
- MockFileFinder::findFile in core/
lib/ Drupal/ Component/ Annotation/ Reflection/ MockFileFinder.php - Finds a class.
File
- core/
lib/ Drupal/ Component/ ClassFinder/ ClassFinderInterface.php, line 19
Class
- ClassFinderInterface
- Finds a class in a PSR-0 structure.
Namespace
Drupal\Component\ClassFinderCode
public function findFile($class);