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: core/filters.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -432,7 +432,7 @@ class WithParameter
432
432
}
433
433
```
434
434
435
-
### Configuration Options
435
+
####Configuration Options
436
436
437
437
The `IriConverterParameterProvider` supports the following options in `extraProperties`:
438
438
@@ -487,20 +487,7 @@ The provider will:
487
487
- Optionally use the `uri_template` from `extraProperties` to construct the proper operation for loading the resource
488
488
- Return the loaded entity, making it available in your state provider
489
489
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
You can control the behavior of `ReadLinkParameterProvider` with these `extraProperties`:
506
493
@@ -520,6 +507,19 @@ You can control the behavior of `ReadLinkParameterProvider` with these `extraPro
520
507
)
521
508
```
522
509
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
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