hook_image_style_flush doesn't get the $path passed to Drupal\image\Entity\ImageStyle::flush() method

Created on 5 December 2016, almost 8 years ago
Updated 10 April 2024, 7 months ago

Problem/Motivation

ImageStyle::flush allows to delete a particular image in an image style, However the hook invoked from the flush() method doesn't pass this path value.

Proposed resolution

Pass $path along to the hook and make sure the hook is invoked when a path is passed.

Remaining tasks

None

User interface changes

None

API changes

$path is passed to hook_image_style_flush
hook_image_style_flush is invoked when a $path is passed

Release note

hook_image_style_flush is now invoked if ImageStyle::flush is called with the $path parameter set. Previously the hook was only called if no path was passed to this method. Also, the path parameter is now passed along to the hook implementation.

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Image system 

Last updated 3 days ago

Created by

🇬🇧United Kingdom vijaycs85 London, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024