PHP 클래스 Neos\Neos\Service\ImageVariantGarbageCollector

파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface

공개 메소드들

메소드 설명
removeUnusedImageVariant ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName, mixed $oldValue, mixed $value ) : void Removes unused ImageVariants after a Node property changes to a different ImageVariant.

메소드 상세

removeUnusedImageVariant() 공개 메소드

This is triggered via the nodePropertyChanged event. Note: This method it triggered by the "nodePropertyChanged" signal, @see \Neos\ContentRepository\Domain\Model\Node::emitNodePropertyChanged()
public removeUnusedImageVariant ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName, mixed $oldValue, mixed $value ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface the affected node
$propertyName string name of the property that has been changed/added
$oldValue mixed the property value before it was changed or NULL if the property is new
$value mixed the new property value
리턴 void

프로퍼티 상세

$assetRepository 보호되어 있는 프로퍼티

protected AssetRepository,Neos\Media\Domain\Repository $assetRepository
리턴 Neos\Media\Domain\Repository\AssetRepository

$nodeDataRepository 보호되어 있는 프로퍼티

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
리턴 Neos\ContentRepository\Domain\Repository\NodeDataRepository

$persistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface