You are here

ClassFinderInterface.php in Drupal 9

Same filename and directory in other branches
  1. 10 core/lib/Drupal/Component/ClassFinder/ClassFinderInterface.php

File

core/lib/Drupal/Component/ClassFinder/ClassFinderInterface.php
View source
<?php

namespace Drupal\Component\ClassFinder;


/**
 * Finds a class in a PSR-0 structure.
 */
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);

}

Interfaces

Namesort descending Description
ClassFinderInterface Finds a class in a PSR-0 structure.