class FacetapiTestNonterm in Facet API 7
Same name and namespace in other branches
- 7.2 tests/facetapi_test.plugins.inc \FacetapiTestNonterm
Plugin for "nonterm" query type.
Hierarchy
- class \FacetapiQueryType
- class \FacetapiTestNonterm implements FacetapiQueryTypeInterface
Expanded class hierarchy of FacetapiTestNonterm
1 string reference to 'FacetapiTestNonterm'
- facetapi_test_facetapi_query_types in tests/
facetapi_test.facetapi.inc - Implements hook_facetapi_query_types().
File
- tests/
facetapi_test.plugins.inc, line 105 - Test adapter and plugins.
View source
class FacetapiTestNonterm extends FacetapiQueryType implements FacetapiQueryTypeInterface {
/**
* Implements FacetapiQueryTypeInterface::getType().
*/
public static function getType() {
return 'nonterm';
}
/**
* Implements FacetapiQueryTypeInterface::execute().
*/
public function execute($query) {
// Nothing to do...
}
/**
* Implements FacetapiQueryTypeInterface::build().
*/
public function build() {
$build = array();
$build['testfour'] = array(
'#count' => 4,
);
$build['testsix'] = array(
'#count' => 6,
);
$build['testfive'] = array(
'#count' => 5,
);
// Returns initialized build.
return $build;
}
}