public static function Imce::accessFileUri in IMCE 8
Same name and namespace in other branches
- 8.2 src/Imce.php \Drupal\imce\Imce::accessFileUri()
Checks if a file uri is accessible by a user with Imce.
1 call to Imce::accessFileUri()
- imce_file_download in ./
imce.module - Implements hook_file_download().
File
- src/
Imce.php, line 346
Class
- Imce
- Imce container class for helper methods.
Namespace
Drupal\imceCode
public static function accessFileUri($uri, AccountProxyInterface $user = NULL) {
list($scheme, $path) = explode('://', $uri, 2);
return $scheme && $path && Imce::accessFilePaths([
$path,
], $user, $scheme);
}