MediaWiki REL1_34
ResourceLoaderUserDefaultsModule.php
Go to the documentation of this file.
1<?php
29
30 protected $targets = [ 'desktop', 'mobile' ];
31
35 public function enableModuleContentVersion() {
36 return true;
37 }
38
44 return 'mw.user.options.set('
45 . $context->encodeJson( User::getDefaultOptions() )
46 . ');';
47 }
48}
Context object that contains information about the state of a specific ResourceLoader web request.
Abstraction for ResourceLoader modules, with name registration and maxage functionality.
$context
Definition load.php:45