function image_path_flush
Same name and namespace in other branches
- 11.x core/modules/image/image.module \image_path_flush()
- 10 core/modules/image/image.module \image_path_flush()
- 9 core/modules/image/image.module \image_path_flush()
- 8.9.x core/modules/image/image.module \image_path_flush()
- 7.x modules/image/image.module \image_path_flush()
Clears cached versions of a specific file in all styles.
Parameters
string $path: The Drupal file path to the original image.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. Use ImageDerivativeUtilities::pathFlush() instead.
See also
https://www.drupal.org/node/3567619
File
-
core/
modules/ image/ image.module, line 30
Code
function image_path_flush($path) : void {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. Use \\Drupal\\image\\ImageDerivativeUtilities::pathFlush() instead. See https://www.drupal.org/node/3567619', E_USER_DEPRECATED);
\Drupal::service(ImageDerivativeUtilities::class)->pathFlush($path);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.