853 B
853 B
- Since: 2.3
- Description: Hook to replace the standard
SearchByPropertywith a custom link inSpecial:Browseto an extended list of results (returnfalseto replace the link) - Reference class:
HtmlBuilder.php
Signature
use MediaWiki\MediaWikiServices;
use SMW\DIProperty;
use SMW\DIWikiPage;
MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Browse::BeforeIncomingPropertyValuesFurtherLinkCreate', function( DIProperty $property, DIWikiPage $subject, &$propertyValue ) {
// return `false` to replace the link
return true;
} );
See also
- For a usage example, see the
SemanticCiteextension