interface ClassFinderInterface in Drupal 9
Finds a class in a PSR-0 structure.
Hierarchy
- interface \Drupal\Component\ClassFinder\ClassFinderInterface
Expanded class hierarchy of ClassFinderInterface
All classes that implement ClassFinderInterface
1 file declares its use of ClassFinderInterface
- MockFileFinder.php in core/
lib/ Drupal/ Component/ Annotation/ Reflection/ MockFileFinder.php
File
- core/
lib/ Drupal/ Component/ ClassFinder/ ClassFinderInterface.php, line 8
Namespace
Drupal\Component\ClassFinderView source
interface ClassFinderInterface {
/**
* Finds a class.
*
* @param string $class
* The name of the class.
*
* @return string|null
* The name of the class or NULL if not found.
*/
public function findFile($class);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ClassFinderInterface:: |
public | function | Finds a class. | 2 |