protected function IgnoredPathsTrait::isIgnoredPath in Automatic Updates 8
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 src/
IgnoredPathsIteratorFilter.php - MissingProjectInfo::missingProjectInfoCheck in src/
ReadinessChecker/ MissingProjectInfo.php - Check for projects missing project info.
File
- src/
IgnoredPathsTrait.php, line 19
Class
- IgnoredPathsTrait
- Provide a helper to check if file paths are ignored.
Namespace
Drupal\automatic_updatesCode
protected function isIgnoredPath($file_path) {
$paths = $this
->getConfigFactory()
->get('automatic_updates.settings')
->get('ignored_paths');
if ($this
->getPathMatcher()
->matchPath($file_path, $paths)) {
return TRUE;
}
return FALSE;
}