public function FilebrowserValidator::whiteListed in Filebrowser 3.x
Same name and namespace in other branches
- 8.2 src/Services/FilebrowserValidator.php \Drupal\filebrowser\Services\FilebrowserValidator::whiteListed()
File
- src/
Services/ FilebrowserValidator.php, line 39
Class
Namespace
Drupal\filebrowser\ServicesCode
public function whiteListed($file, $pattern) {
return trim($pattern) == '' || $this
->matchPath($file, $pattern);
}