- Since: 3.1
- Description: Hook to provide a possibility the modify Semantic MediaWiki's encapsulated configuration settings before the initialization is completed.
- Reference class:
Settings.php
use MediaWiki\MediaWikiServices;
MediaWikiServices::getInstance()->getHookContainer()->register( 'SMW::Settings::BeforeInitializationComplete', function( &$configuration ) {
// Extend the configuration of `smwgNamespacesWithSemanticLinks`
$configuration['smwgNamespacesWithSemanticLinks'][NS_MAIN] = true
return true;
} );