gplx/mediawiki/extensions/SemanticMediaWiki/docs/technical/hooks/hook.fileupload.beforeupdat...

547 B

  • Since: 2.4
  • Description: Hook to add extra annotations on a FileUpload event before the Store update is triggered
  • Reference class: FileUpload.php

Signature

use MediaWiki\MediaWikiServices;
use SMW\SemanticData;

MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::FileUpload::BeforeUpdate', function( $filePage, SemanticData $semanticData  ) {

	return true;
} );