You are here

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

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\Sorter
View source
interface SorterInterface {

  /**
   * Sorts a views result.
   *
   * @param \Drupal\views\ResultRow[] &$result
   *   The views result.
   */
  public function __invoke(array &$result);

}

Members

Namesort descending Modifiers Type Description Overrides
SorterInterface::__invoke public function Sorts a views result. 1