static function Environment::validCandidateFilename in Realistic Dummy Content 8
1 call to Environment::validCandidateFilename()
- Environment::SortCandidateFiles_ in api/
src/ environments/ Environment.php - Given a list of candidate files, sort them by names and parts.
File
- api/
src/ environments/ Environment.php, line 255 - Define autoload class.
Class
- Environment
- The abstract base environment.
Namespace
Drupal\realistic_dummy_content_api\environmentsCode
static function validCandidateFilename($name, $extensions = NULL) {
if (self::LowercaseRadicalNoExtension($name) == 'readme') {
return FALSE;
}
if (!$extensions) {
return TRUE;
}
$filparts = self::getFileParts($name);
return in_array($filparts['base_extension'], $extensions);
}