You are here

SorterInterface.php in Views XML Backend 8

File

src/Sorter/SorterInterface.php
View 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

Namesort descending Description
SorterInterface This is the interface used for sorters.