protected static function IgnoredPathsTrait::isIgnoredPath in Automatic Updates 7
Check if the file path is ignored.
Parameters
string $file_path: The file path.
Return value
bool TRUE if file path is ignored, else FALSE.
2 calls to IgnoredPathsTrait::isIgnoredPath()
- IgnoredPathsIteratorFilter::accept in ./
IgnoredPathsIteratorFilter.php - MissingProjectInfo::missingProjectInfoCheck in ReadinessCheckers/
MissingProjectInfo.php - Check for projects missing project info.
File
- ./
IgnoredPathsTrait.php, line 17
Class
- IgnoredPathsTrait
- Provide a helper to check if file paths are ignored.
Code
protected static function isIgnoredPath($file_path) {
$paths = variable_get('automatic_updates_ignored_paths', "sites/all/modules/*\nsites/all/themes/*");
if (drupal_match_path($file_path, $paths)) {
return TRUE;
}
return FALSE;
}