You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content_management/images/add_image_asset_from_dam.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,15 +96,15 @@ To extend the DAM support built into [[= product_name =]], you must create a cus
96
96
97
97
This class handles searching through Wikimedia Commons for images and fetching image assets.
98
98
99
-
In `src\Connector\Dam\Handler` folder, create the `WikimediaCommonsHandler.php` file that resembles the following example,
99
+
In `src/Connector/Dam/Handler` folder, create the `WikimediaCommonsHandler.php` file that resembles the following example,
100
100
which implements [`search()`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Connector-Dam-Handler-Handler.html#method_search) to query the server
101
101
and [`fetchAsset()`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Connector-Dam-Handler-Handler.html#method_fetchAsset) to return asset objects:
@@ -116,7 +116,7 @@ The `source` parameter passed in the tag is an identifier of this new DAM connec
116
116
117
117
The transformation factory maps [[= product_name =]]'s image variations to corresponding variations from Wikimedia Commons.
118
118
119
-
In `src\Connector\Dam\Transformation` folder, create the `WikimediaCommonsTransformationFactory.php` file that resembles the following example,
119
+
In `src/Connector/Dam/Transformation` folder, create the `WikimediaCommonsTransformationFactory.php` file that resembles the following example,
120
120
which implements the [`TransformationFactory` interface](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Connector-Dam-Variation-TransformationFactory.html):
121
121
122
122
```php
@@ -134,15 +134,15 @@ Then register the transformation factory as a service:
134
134
The variation generator applies map parameters coming from the transformation factory to build a fetch request to the DAM.
135
135
The solution uses the built-in `URLBasedVariationGenerator` class, which adds all the map elements as query parameters to the request.
136
136
137
-
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):
137
+
For example, for an asset with the ID `Ibexa_Logo.svg`, the handler generates the Asset with [`AssetUri's URL`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Connector-Dam-AssetUri.htm#method_getPatht) equal to:
When the user requests a specific variation of the image, for example, "large", the variation generator modifies the URL and returns it in the following form:
0 commit comments