564 B
564 B
- Since: 2.1
- Description: Hook to return a
QueryResultobject before the standard selection process is started and allows to suppress the standard selection process completely by returningfalse. - Reference class:
SMW_SQLStore3.php
Signature
use MediaWiki\MediaWikiServices;
MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Store::BeforeQueryResultLookupComplete', function( $store, $query, &$queryResult, $queryEngine ) {
// Allow default processing
return true;
// Stop further processing
return false;
} );