function FilterPluginBaseTest::acceptExposedInputProvider
Same name in other branches
- 9 core/modules/views/tests/src/Unit/Plugin/filter/FilterPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\filter\FilterPluginBaseTest::acceptExposedInputProvider()
- 11.x core/modules/views/tests/src/Unit/Plugin/filter/FilterPluginBaseTest.php \Drupal\Tests\views\Unit\Plugin\filter\FilterPluginBaseTest::acceptExposedInputProvider()
The data provider for testAcceptExposedInput.
Return value
array The data set.
File
-
core/
modules/ views/ tests/ src/ Unit/ Plugin/ filter/ FilterPluginBaseTest.php, line 37
Class
- FilterPluginBaseTest
- @coversDefaultClass \Drupal\views\Plugin\views\filter\FilterPluginBase @group views
Namespace
Drupal\Tests\views\Unit\Plugin\filterCode
public static function acceptExposedInputProvider() {
return [
'not-exposed' => [
TRUE,
[
'exposed' => FALSE,
],
[],
],
'exposed-no-input' => [
TRUE,
[
'exposed' => TRUE,
],
[],
],
'exposed-zero-input' => [
FALSE,
[
'exposed' => TRUE,
'is_grouped' => FALSE,
'expose' => [
'use_operator' => TRUE,
'operator_id' => '=',
'identifier' => 'identifier',
],
],
[
'identifier' => 0,
],
],
'exposed-empty-array-input' => [
FALSE,
[
'exposed' => TRUE,
'is_grouped' => FALSE,
'expose' => [
'use_operator' => TRUE,
'operator_id' => '=',
'identifier' => 'identifier',
],
],
[
'identifier' => [],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.