ImageVariantGarbageCollector
class ImageVariantGarbageCollector (View source)
Takes care of cleaning up ImageVariants.
Properties
protected NodeDataRepository | $nodeDataRepository | ||
protected AssetRepository | $assetRepository | ||
protected PersistenceManagerInterface | $persistenceManager |
Methods
void
removeUnusedImageVariant(NodeInterface $node, string $propertyName, mixed $oldValue, mixed $value)
Removes unused ImageVariants after a Node property changes to a different ImageVariant.
Details
void
removeUnusedImageVariant(NodeInterface $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, \Neos\ContentRepository\Domain\Model\Node::emitNodePropertyChanged()