Skip to content

Commit da1602f

Browse files
committed
add_image_asset_from_dam.md: Links to PHP API Ref
1 parent 9dd02d1 commit da1602f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/content_management/images/add_image_asset_from_dam.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ Then, in `config\services.yaml`, register the handler as a service:
114114

115115
The transformation factory maps [[= product_name =]]'s image variations to corresponding variations from Wikimedia Commons.
116116

117-
In `src\Connector\Dam\Transformation` folder, create the `WikimediaCommonsTransformationFactory.php` file that resembles the following example:
117+
In `src\Connector\Dam\Transformation` folder, create the `WikimediaCommonsTransformationFactory.php` file that resembles the following example
118+
implementing the [`TransformationFactory` interface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Connector-Dam-Variation-TransformationFactory.html):
118119

119120
```php
120121
[[= include_file('code_samples/back_office/images/src/Connector/Dam/Transformation/WikimediaCommonsTransformationFactory.php') =]]
@@ -131,7 +132,7 @@ Then register the transformation factory as a service:
131132
The variation generator applies map parameters coming from the transformation factory to build a fetch request to the DAM.
132133
The solution uses the built-in `URLBasedVariationGenerator` class, which adds all the map elements as query parameters to the request.
133134

134-
For example, the handler generates the following URL with `new AssetUri()`:
135+
For example, the handler generates the following URL with [`new AssetUri()`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Connector-Dam-AssetUri.html#method___construct):
135136

136137
`https://commons.wikimedia.org/w/index.php?title=Special:Redirect/file/Ibexa_Logo.svg`
137138

0 commit comments

Comments
 (0)