function ClassFinderInterface::findFile

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Component/ClassFinder/ClassFinderInterface.php \Drupal\Component\ClassFinder\ClassFinderInterface::findFile()
  2. 10 core/lib/Drupal/Component/ClassFinder/ClassFinderInterface.php \Drupal\Component\ClassFinder\ClassFinderInterface::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.

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

Code

public function findFile($class);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.