function imagecache_external_get_directory_path in Imagecache External 8
Helper function to get externals directory.
Return value
string The path to the external images directory.
3 calls to imagecache_external_get_directory_path()
- imagecache_external_batch_flush in ./
imagecache_external.module - The batch callback.
- imagecache_external_batch_flush_finished in ./
imagecache_external.module - The batch finish handler.
- imagecache_external_flush_cache in ./
imagecache_external.module - Helper function to flush caches.
File
- ./
imagecache_external.module, line 319 - Allows the usage of Image Styles on external images.
Code
function imagecache_external_get_directory_path() {
$config = imagecache_external_config();
$scheme = \Drupal::config('system.file')
->get('default_scheme');
$wrapper = \Drupal::service('stream_wrapper_manager')
->getViaScheme($scheme);
$path = realpath($wrapper
->getDirectoryPath() . '/' . $config
->get('imagecache_directory'));
return $path;
}