Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function postRemove(LifecycleEventArgs $event): void |
||
32 | { |
||
33 | $image = $event->getEntity(); |
||
34 | |||
35 | if ($image instanceof ImageInterface) { |
||
36 | $this->imageUploader->remove($image->getPath()); |
||
37 | $this->cacheManager->remove($image->getPath(), array_keys($this->filterManager->getFilterConfiguration()->all())); |
||
38 | } |
||
39 | } |
||
40 | } |
||
41 |