You are here

public function FilebrowserValidator::blackListed in Filebrowser 3.x

Same name and namespace in other branches
  1. 8.2 src/Services/FilebrowserValidator.php \Drupal\filebrowser\Services\FilebrowserValidator::blackListed()

File

src/Services/FilebrowserValidator.php, line 43

Class

FilebrowserValidator

Namespace

Drupal\filebrowser\Services

Code

public function blackListed($file, $pattern) {
  return trim($pattern) != '' && $this
    ->matchPath($file, $pattern);
}