interface SorterInterface in Views XML Backend 8
This is the interface used for sorters.
This interface isn't checked directly, any callable will work.
Hierarchy
- interface \Drupal\views_xml_backend\Sorter\SorterInterface
Expanded class hierarchy of SorterInterface
All classes that implement SorterInterface
File
- src/
Sorter/ SorterInterface.php, line 15 - Contains \Drupal\views_xml_backend\Sorter\SorterInterface.
Namespace
Drupal\views_xml_backend\SorterView source
interface SorterInterface {
/**
* Sorts a views result.
*
* @param \Drupal\views\ResultRow[] &$result
* The views result.
*/
public function __invoke(array &$result);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SorterInterface:: |
public | function | Sorts a views result. | 1 |