SorterInterface.php in Views XML Backend 8
Namespace
Drupal\views_xml_backend\SorterFile
src/Sorter/SorterInterface.phpView source
<?php
/**
* @file
* Contains \Drupal\views_xml_backend\Sorter\SorterInterface.
*/
namespace Drupal\views_xml_backend\Sorter;
/**
* This is the interface used for sorters.
*
* This interface isn't checked directly, any callable will work.
*/
interface SorterInterface {
/**
* Sorts a views result.
*
* @param \Drupal\views\ResultRow[] &$result
* The views result.
*/
public function __invoke(array &$result);
}
Interfaces
Name | Description |
---|---|
SorterInterface | This is the interface used for sorters. |