function FilterTest::parameterProvider
Same name in other branches
- 9 core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::parameterProvider()
- 10 core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::parameterProvider()
- 11.x core/modules/jsonapi/tests/src/Kernel/Query/FilterTest.php \Drupal\Tests\jsonapi\Kernel\Query\FilterTest::parameterProvider()
Data provider for testCreateFromQueryParameter.
File
-
core/
modules/ jsonapi/ tests/ src/ Kernel/ Query/ FilterTest.php, line 327
Class
- FilterTest
- @coversDefaultClass \Drupal\jsonapi\Query\Filter @group jsonapi @group jsonapi_query
Namespace
Drupal\Tests\jsonapi\Kernel\QueryCode
public function parameterProvider() {
return [
'shorthand' => [
[
'uid' => [
'value' => 1,
],
],
[
[
'path' => 'uid',
'value' => 1,
'operator' => '=',
],
],
],
'extreme shorthand' => [
[
'uid' => 1,
],
[
[
'path' => 'uid',
'value' => 1,
'operator' => '=',
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.