Filter/Widget/Choice/SingleTermChoice.php 1 location
|
@@ 117-121 (lines=5) @@
|
| 114 |
|
$choice->setLabel($bucket['key']); |
| 115 |
|
$choice->setCount($bucket['doc_count']); |
| 116 |
|
$choice->setActive($active); |
| 117 |
|
if ($active) { |
| 118 |
|
$choice->setUrlParameters($this->getUnsetUrlParameters($bucket['key'], $data)); |
| 119 |
|
} else { |
| 120 |
|
$choice->setUrlParameters($this->getOptionUrlParameters($bucket['key'], $data)); |
| 121 |
|
} |
| 122 |
|
$unsortedChoices[$bucket['key']] = $choice; |
| 123 |
|
} |
| 124 |
|
|
Filter/Widget/Dynamic/DynamicAggregateFilter.php 1 location
|
@@ 194-198 (lines=5) @@
|
| 191 |
|
$choice->setLabel($bucket->getValue('key')); |
| 192 |
|
$choice->setCount($bucket['doc_count']); |
| 193 |
|
$choice->setActive($active); |
| 194 |
|
if ($active) { |
| 195 |
|
$choice->setUrlParameters($this->getUnsetUrlParameters($bucket['key'], $data)); |
| 196 |
|
} else { |
| 197 |
|
$choice->setUrlParameters($this->getOptionUrlParameters($bucket['key'], $data)); |
| 198 |
|
} |
| 199 |
|
$unsortedChoices[$bucket->getAggregation('name')->getBuckets()[0]['key']][] = $choice; |
| 200 |
|
} |
| 201 |
|
|