ClassFinderInterface.php

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

Namespace

Drupal\Component\ClassFinder

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

Title Deprecated Summary
ClassFinderInterface Finds a class in a PSR-0 structure.

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