Skip to content

Commit 5bdb095

Browse files
committed
Revert unrelated changes
1 parent 6ed6be0 commit 5bdb095

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

code_samples/api/graphql/src/GraphQL/Schema/MyFieldDefinitionMapper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ protected function getFieldTypeIdentifier(): string
1515
return 'my_field_type';
1616
}
1717

18-
#[\Override]
1918
public function mapToFieldValueInputType(ContentType $contentType, FieldDefinition $fieldDefinition): ?string
2019
{
2120
if (!$this->canMap($fieldDefinition)) {

code_samples/catalog/custom_catalog_filter/src/CatalogFilter/DataTransformer/ProductNameCriterionTransformer.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
use Symfony\Component\Form\DataTransformerInterface;
99
use Symfony\Component\Form\Exception\TransformationFailedException;
1010

11-
/**
12-
* @implements \Symfony\Component\Form\DataTransformerInterface<
13-
* \Ibexa\Contracts\ProductCatalog\Values\Product\Query\Criterion\ProductName,
14-
* \Ibexa\Bundle\ProductCatalog\Form\Data\Catalog\CatalogFilterPriceData
15-
* >
16-
*/
1711
final class ProductNameCriterionTransformer implements DataTransformerInterface
1812
{
1913
public function transform($value): ?string

docs/api/graphql/graphql_custom_ft.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ It requires that you implement the `getFieldTypeIdentifier` method to tell which
6060
Add `MyFieldDefinitionMapper.php` mapper to `src/GraphQL/Schema`:
6161

6262
``` php
63-
[[= include_code('code_samples/api/graphql/src/GraphQL/Schema/MyFieldDefinitionMapper.php', 1, 17) =]]
64-
[[= include_code('code_samples/api/graphql/src/GraphQL/Schema/MyFieldDefinitionMapper.php', 38, 39) =]]
63+
[[= include_file('code_samples/api/graphql/src/GraphQL/Schema/MyFieldDefinitionMapper.php', 0, 16) =]][[= include_file('code_samples/api/graphql/src/GraphQL/Schema/MyFieldDefinitionMapper.php', 36, 37) =]]
6564
```
6665

6766
The `FieldDefinitionMapper` interface defines following methods:
@@ -76,7 +75,7 @@ When a mapper method is decorated, you need to call the decorated service method
7675
To do that, you need to replace `mapXXX` by the method it's in:
7776

7877
```php
79-
[[= include_code('code_samples/api/graphql/src/GraphQL/Schema/MyFieldDefinitionMapper.php', 21, 24, remove_indent=True) =]]
78+
[[= include_file('code_samples/api/graphql/src/GraphQL/Schema/MyFieldDefinitionMapper.php', 19, 22, remove_indent=True) =]]
8079
```
8180

8281
It's required for every implemented method, so that other mappers are called for the other field types.

0 commit comments

Comments
 (0)