gplx/mediawiki/extensions/SemanticMediaWiki/docs/technical/hooks/hook.property.initpropertie...

786 B

  • Since: 2.1
  • Description: Hook to add additional predefined properties (smwInitProperties was deprecated with 2.1)
  • Reference class: PropertyRegistry.php

Signature

use MediaWiki\MediaWikiServices;
use SMW\PropertyRegistry;

MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Property::initProperties', function( PropertyRegistry $propertyRegistry ) {

	return true;
} );

See also