Skip to content

Commit e1f0d01

Browse files
fix(filters): menus order
1 parent 399784d commit e1f0d01

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

core/filters.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ class WithParameter
432432
}
433433
```
434434

435-
### Configuration Options
435+
#### Configuration Options
436436

437437
The `IriConverterParameterProvider` supports the following options in `extraProperties`:
438438

@@ -487,20 +487,7 @@ The provider will:
487487
- Optionally use the `uri_template` from `extraProperties` to construct the proper operation for loading the resource
488488
- Return the loaded entity, making it available in your state provider
489489

490-
#### Array Support
491-
492-
Both `IriConverterParameterProvider` and `ReadLinkParameterProvider` support processing arrays of values. When you pass an array of identifiers or IRIs, they will return an array of resolved entities:
493-
494-
```php
495-
// For IRI converter: ?related[]=/dummies/1&related[]=/dummies/2
496-
// For ReadLink provider: ?dummies[]=uuid1&dummies[]=uuid2
497-
'items' => new QueryParameter(
498-
provider: ReadLinkParameterProvider::class,
499-
extraProperties: ['resource_class' => Dummy::class]
500-
)
501-
```
502-
503-
### ReadLinkParameterProvider Configuration Options
490+
#### ReadLinkParameterProvider Configuration Options
504491

505492
You can control the behavior of `ReadLinkParameterProvider` with these `extraProperties`:
506493

@@ -520,6 +507,19 @@ You can control the behavior of `ReadLinkParameterProvider` with these `extraPro
520507
)
521508
```
522509

510+
### Array Support
511+
512+
Both `IriConverterParameterProvider` and `ReadLinkParameterProvider` support processing arrays of values. When you pass an array of identifiers or IRIs, they will return an array of resolved entities:
513+
514+
```php
515+
// For IRI converter: ?related[]=/dummies/1&related[]=/dummies/2
516+
// For ReadLink provider: ?dummies[]=uuid1&dummies[]=uuid2
517+
'items' => new QueryParameter(
518+
provider: ReadLinkParameterProvider::class,
519+
extraProperties: ['resource_class' => Dummy::class]
520+
)
521+
```
522+
523523
### Creating a Custom Parameter Provider
524524

525525
You can create your own providers to implement any custom logic. A provider must implement `ParameterProviderInterface`. The `provide` method can modify the parameter's value or even return a modified `Operation` to alter the request handling flow.

0 commit comments

Comments
 (0)