ImageVariantGarbageCollector
class ImageVariantGarbageCollector (View source)
Takes care of cleaning up ImageVariants.
Properties
protected AssetRepository | $assetRepository | ||
protected PersistenceManagerInterface | $persistenceManager | ||
protected | $assetUsageRepository |
Methods
void
removeUnusedImageVariant(Node $node, string $propertyName, mixed $oldValue, mixed $value)
Removes unused ImageVariants after a Node property changes to a different ImageVariant.
Details
void
removeUnusedImageVariant(Node $node, string $propertyName, mixed $oldValue, mixed $value)
Removes unused ImageVariants after a Node property changes to a different ImageVariant.
This is triggered via the nodePropertyChanged event.
Note: This method it triggered by the "nodePropertyChanged" signal,