gplx/mediawiki/extensions/SemanticMediaWiki/docs/technical/hooks/hook.browse.beforeincomingp...

853 B

  • Since: 2.3
  • Description: Hook to replace the standard SearchByProperty with a custom link in Special:Browse to an extended list of results (return false to 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