AssetTransformation
class AssetTransformation implements ComponentInterface
Class AssetTransformation
A.K.A EagerTransformation
Methods
AssetTransformation constructor.
Sets the file extension.
Creates a new asset from the provided string (URL).
Creates a new asset from the provided JSON.
Creates a new asset transformation from the provided array of parameters.
Imports data from the provided string (URL).
Imports data from the provided JSON.
Adds (appends) a transformation.
Adds (chains) a transformation action.
Serializes to string.
No description
Details
__construct(Transformation|array $transformation = null, string $extension = null)
AssetTransformation constructor.
$this
extension(string $extension)
Sets the file extension.
static mixed
fromString(string $string)
Creates a new asset from the provided string (URL).
static mixed
fromJson(string|array $json)
Creates a new asset from the provided JSON.
static AssetTransformation
fromParams(array $params)
Creates a new asset transformation from the provided array of parameters.
mixed
importString(string $string)
Imports data from the provided string (URL).
mixed
importJson(string|array $json)
Imports data from the provided JSON.
AssetTransformation
addTransformation(CommonTransformation $transformation)
Adds (appends) a transformation.
Appended transformation is nested.
AssetTransformation
addAction(BaseAction|BaseQualifier|mixed $action)
Adds (chains) a transformation action.
string
__toString()
Serializes to string.
jsonSerialize($includeEmptyKeys = false)
Constants
DELIMITER |
|