Property | Type | Description | |
---|---|---|---|
$imageService | |||
$variants | Collection<\Neos\Media\Domain\Model\ImageVariant> |
Method | Description | |
---|---|---|
__construct ( |
Constructor | |
addVariant ( |
Adds a variant of this image | |
getVariants ( ) : array | Returns all variants (if any) derived from this asset | |
initializeObject ( integer $initializationCause ) : void | ||
refresh ( ) : void | Calculates image width and height from the image resource. |
Method | Description | |
---|---|---|
calculateDimensionsFromResource ( |
Calculates and sets the width and height of this Image asset based on the given PersistentResource. |
public __construct ( |
||
$resource |
public addVariant ( |
||
$variant | The new variant | |
return | void |
protected calculateDimensionsFromResource ( |
||
$resource | ||
return | void |
public getVariants ( ) : array | ||
return | array |
public initializeObject ( integer $initializationCause ) : void | ||
$initializationCause | integer | |
return | void |
protected ImageService,Neos\Media\Domain\Service $imageService | ||
return |