You are here

interface SortProcessorInterface in Facets 8

Processor runs before the renderable array is created.

Hierarchy

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

... See full list

File

src/Processor/SortProcessorInterface.php, line 10

Namespace

Drupal\facets\Processor
View 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

Namesort descending Modifiers Type Description Overrides
SortProcessorInterface::sortResults public function Orders results and return the new order of results. 5