You are here

interface ClassFinderInterface in Drupal 9

Finds a class in a PSR-0 structure.

Hierarchy

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\ClassFinder
View 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