Skip to content

Commit a8e01e1

Browse files
committed
Fixed nested input
1 parent b846261 commit a8e01e1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/product_catalog/product_api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ You can filter variants by:
7070
- variant codes:
7171

7272
``` php
73-
[[= include_file('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 50, 54, remove_indent=True) =]]
73+
[[= include_code('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 51, 54, indent_level=1,remove_indent=True) =]]
7474
```
7575

7676
- product criteria:
7777

7878
To use [Product Search Criteria](product_search_criteria.md) with [`ProductVariantQuery`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-Product-ProductVariantQuery.html), wrap it with the [`ProductCriterionAdapter`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-Content-Query-Criterion-ProductCriterionAdapter.html) class, as in the example below:
7979

8080
``` php hl_lines="4"
81-
[[= include_file('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 55, 66, remove_indent=True) =]]
81+
[[= include_code('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 56, 66, indent_level=1, remove_indent=True) =]]
8282
```
8383

8484
From a variant ([`ProductVariantInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-ProductVariantInterface.html)), you can access the attributes that are used to generate the variant by using the [`ProductVariantInterface::getDiscriminatorAttributes()`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-ProductVariantInterface.html#method_getDiscriminatorAttributes) method.
@@ -99,15 +99,15 @@ You can filter variants by:
9999
- variant codes:
100100

101101
``` php
102-
[[= include_file('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 83, 87, remove_indent=True) =]]
102+
[[= include_code('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 84, 87, indent_level=1, remove_indent=True) =]]
103103
```
104104

105105
- product criteria:
106106

107107
To use [Product Search Criteria](product_search_criteria.md) with [`ProductVariantQuery`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-Product-ProductVariantQuery.html), wrap it with the [`ProductCriterionAdapter`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-ProductCatalog-Values-Content-Query-Criterion-ProductCriterionAdapter.html) class, as in the example below:
108108

109109
``` php hl_lines="4"
110-
[[= include_file('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 92, 100, remove_indent=True) =]]
110+
[[= include_code('code_samples/api/product_catalog/src/Command/ProductVariantCommand.php', 93, 100, indent_level=1, remove_indent=True) =]]
111111
```
112112

113113
#### Creating variants

0 commit comments

Comments
 (0)