protected $origin = self::ORIGIN_CORE_INDIVIDUAL;
- protected $targets = array( 'desktop', 'mobile' );
+ protected $targets = [ 'desktop', 'mobile' ];
/**
* @param ResourceLoaderContext $context
* @return array List of module names as strings
*/
public function getDependencies( ResourceLoaderContext $context = null ) {
- return array( 'user.defaults' );
+ return [ 'user.defaults' ];
}
/**
*/
public function getScript( ResourceLoaderContext $context ) {
return Xml::encodeJsCall( 'mw.user.options.set',
- array( $context->getUserObj()->getOptions( User::GETOPTIONS_EXCLUDE_DEFAULTS ) ),
+ [ $context->getUserObj()->getOptions( User::GETOPTIONS_EXCLUDE_DEFAULTS ) ],
ResourceLoader::inDebugMode()
);
}
return false;
}
+ /**
+ * @return string
+ */
+ public function getPosition() {
+ return 'top';
+ }
+
/**
* @return string
*/