Semantic MediaWiki and related extensions
hook

Signature

use Hooks;
Hooks::register( 'SMW::Schema::RegisterSchemaTypes', function( SchemaTypes $schemaTypes ) {
$params = [
'group' => FOO_GROUP,
'validation_schema' => $schemaTypes->withDir( 'foo-schema.v1.json' ),
'type_description' => 'smw-schema-description-foo-schema',
'change_propagation' => [ '_FOO_SCHEMA' ],
'usage_lookup' => '_FOO_SCHEMA'
];
$schemaTypes->registerSchemaType( 'FOO_SCHEMA', $params );
return true;
} );

About | General disclaimer | Privacy policy