interface SortProcessorInterface in Facets 8
Processor runs before the renderable array is created.
Hierarchy
- interface \Drupal\facets\Processor\SortProcessorInterface
Expanded class hierarchy of SortProcessorInterface
All classes that implement SortProcessorInterface
6 files declare their use of SortProcessorInterface
- ActiveWidgetOrderProcessor.php in src/
Plugin/ facets/ processor/ ActiveWidgetOrderProcessor.php - CountWidgetOrderProcessor.php in src/
Plugin/ facets/ processor/ CountWidgetOrderProcessor.php - DisplayValueWidgetOrderProcessor.php in src/
Plugin/ facets/ processor/ DisplayValueWidgetOrderProcessor.php - FacetForm.php in src/
Form/ FacetForm.php - ProcessorIntegrationTest.php in tests/
src/ Functional/ ProcessorIntegrationTest.php
File
- src/
Processor/ SortProcessorInterface.php, line 10
Namespace
Drupal\facets\ProcessorView source
interface SortProcessorInterface {
/**
* Orders results and return the new order of results.
*
* @param \Drupal\facets\Result\Result $a
* First result which should be compared.
* @param \Drupal\facets\Result\Result $b
* Second result which should be compared.
*
* @return int
* -1, 0, or 1 depending which result
*/
public function sortResults(Result $a, Result $b);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SortProcessorInterface:: |
public | function | Orders results and return the new order of results. | 5 |