static function Util::classIsDefined in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/Util.php \Drupal\xautoload\Util::classIsDefined()
Checks whether an identifier is defined as either a class, interface or trait. Does not trigger autoloading.
Parameters
string $class:
Return value
bool
6 calls to Util::classIsDefined()
- FindFileInjectedApi::guessFile in lib/
ClassFinder/ InjectedApi/ FindFileInjectedApi.php - Suggest a file that MUST exists, and that MAY declare the class we are looking for.
- FindFileInjectedApi::guessPath in lib/
ClassFinder/ InjectedApi/ FindFileInjectedApi.php - Suggest a file that MAY exist, and that MAY declare the class we are looking for.
- LoadClassGetFileInjectedApi::guessFile in lib/
ClassFinder/ InjectedApi/ LoadClassGetFileInjectedApi.php - Suggest a file that MUST exists, and that MAY declare the class we are looking for.
- LoadClassGetFileInjectedApi::guessPath in lib/
ClassFinder/ InjectedApi/ LoadClassGetFileInjectedApi.php - Suggest a file that MAY exist, and that MAY declare the class we are looking for.
- LoadClassInjectedAPI::guessFile in lib/
ClassFinder/ InjectedApi/ LoadClassInjectedAPI.php - Suggest a file that MUST exists, and that MAY declare the class we are looking for.
File
- lib/
Util.php, line 195
Class
- Util
- A number of static methods that don't interact with any global state.
Namespace
Drupal\xautoloadCode
static function classIsDefined($class) {
return class_exists($class, FALSE) || interface_exists($class, FALSE) || PHP_VERSION_ID >= 50400 && trait_exists($class, FALSE);
}