1 | <?php |
||
18 | class AssetTransforms extends Base |
||
19 | { |
||
20 | /** |
||
21 | * @return AssetTransformsService |
||
22 | */ |
||
23 | private function getAssetTransformsService() |
||
27 | |||
28 | /** |
||
29 | * @param $transformId |
||
30 | * |
||
31 | * @return array|mixed|null |
||
32 | */ |
||
33 | public function getTransformById($transformId) |
||
37 | |||
38 | /** |
||
39 | * @param $transformHandle |
||
40 | * |
||
41 | * @return array|mixed|null |
||
42 | */ |
||
43 | public function getTransformByHandle($transformHandle) |
||
47 | |||
48 | /** |
||
49 | * Import asset transform definitions. |
||
50 | * |
||
51 | * @param array $assetTransformDefinitions |
||
52 | * @param bool $force |
||
53 | * |
||
54 | * @return Result |
||
55 | */ |
||
56 | public function import(array $assetTransformDefinitions, $force = false) |
||
70 | |||
71 | /** |
||
72 | * Populate asset transform. |
||
73 | * |
||
74 | * @param string $assetTransformHandle |
||
75 | * @param array $assetTransformDefinition |
||
76 | * |
||
77 | * @return AssetTransformModel |
||
78 | */ |
||
79 | private function populateAssetSource($assetTransformHandle, array $assetTransformDefinition) |
||
98 | |||
99 | /** |
||
100 | * Export all asset transforms. |
||
101 | * |
||
102 | * @param array $data |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | public function export(array $data = []) |
||
119 | |||
120 | /** |
||
121 | * @param AssetTransformModel $assetTransform |
||
122 | * |
||
123 | * @return array |
||
124 | */ |
||
125 | private function getAssetTransformDefinition(AssetTransformModel $assetTransform) |
||
138 | } |
||
139 |