function FilterEqualityTest::getGroupedExposedFilters
Same name in other branches
- 9 core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php \Drupal\Tests\views\Kernel\Handler\FilterEqualityTest::getGroupedExposedFilters()
- 10 core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php \Drupal\Tests\views\Kernel\Handler\FilterEqualityTest::getGroupedExposedFilters()
- 11.x core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php \Drupal\Tests\views\Kernel\Handler\FilterEqualityTest::getGroupedExposedFilters()
2 calls to FilterEqualityTest::getGroupedExposedFilters()
- FilterEqualityTest::testEqualGroupedExposed in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterEqualityTest.php - FilterEqualityTest::testEqualGroupedNotExposed in core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterEqualityTest.php
File
-
core/
modules/ views/ tests/ src/ Kernel/ Handler/ FilterEqualityTest.php, line 149
Class
- FilterEqualityTest
- Tests the core Drupal\views\Plugin\views\filter\Equality handler.
Namespace
Drupal\Tests\views\Kernel\HandlerCode
protected function getGroupedExposedFilters() {
$filters = [
'name' => [
'id' => 'name',
'plugin_id' => 'equality',
'table' => 'views_test_data',
'field' => 'name',
'relationship' => 'none',
'group' => 1,
'exposed' => TRUE,
'expose' => [
'operator' => 'name_op',
'label' => 'name',
'identifier' => 'name',
],
'is_grouped' => TRUE,
'group_info' => [
'label' => 'name',
'identifier' => 'name',
'default_group' => 'All',
'group_items' => [
1 => [
'title' => 'Name is equal to Ringo',
'operator' => '=',
'value' => 'Ringo',
],
2 => [
'title' => 'Name is not equal to Ringo',
'operator' => '!=',
'value' => 'Ringo',
],
],
],
],
];
return $filters;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.