ImageUriImplementation
class ImageUriImplementation extends AbstractFusionObject (View source)
Render an AssetInterface: object. Accepts the same parameters as the uri.image ViewHelper of the Neos.Media package: asset, width, maximumWidth, height, maximumHeight, allowCropping, allowUpScaling.
Properties
protected Runtime | $runtime | from AbstractFusionObject | |
protected string | $path | The Fusion path currently being rendered |
from AbstractFusionObject |
protected string | $fusionObjectName | Name of this Fusion object, like Neos.Neos:Text |
from AbstractFusionObject |
protected array | $fusionValueCache | from AbstractFusionObject | |
protected AssetService | $assetService | Resource publisher |
|
protected ThumbnailService | $thumbnailService |
Methods
Returns a processed image path
Return the Fusion value relative to this Fusion object (with processors etc applied).
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
Asset
Width
MaximumWidth
Height
MaximumHeight
AllowCropping
AllowUpScaling
Quality
Async
Async
Preset
Details
__construct(Runtime $runtime, string $path, string $fusionObjectName)
Constructor
mixed
evaluate()
Returns a processed image path
Runtime
getRuntime()
Get the Fusion runtime this object was created in.
protected mixed
fusionValue(string $path)
Return the Fusion value relative to this Fusion object (with processors etc applied).
Note that subsequent calls of fusionValue() with the same Fusion path will return the same values since the first evaluated value will be cached in memory.
bool
offsetExists(mixed $offset)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
mixed
offsetGet(mixed $offset)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
void
offsetSet(mixed $offset, mixed $value)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
void
offsetUnset(mixed $offset)
Dummy implementation of ArrayAccess to allow this.XXX access in processors.
AssetInterface
getAsset()
Asset
int
getWidth()
Width
int
getMaximumWidth()
MaximumWidth
int
getHeight()
Height
int
getMaximumHeight()
MaximumHeight
bool
getAllowCropping()
AllowCropping
bool
getAllowUpScaling()
AllowUpScaling
int
getQuality()
Quality
bool
getAsync()
Async
string|null
getFormat()
Async
string
getPreset()
Preset