/** @var string Name of group to load this module in */
protected $group;
- /** @var string Position on the page to load this module at */
- protected $position = 'bottom';
-
/** @var bool Link to raw files in debug mode */
protected $debugRaw = true;
protected $targets = [ 'desktop' ];
+ /** @var bool Whether CSSJanus flipping should be skipped for this module */
+ protected $noflip = false;
+
/**
* @var bool Whether getStyleURLsForDebug should return raw file paths,
* or return load.php urls
* 'messages' => [array of message key strings],
* // Group which this module should be loaded together with
* 'group' => [group name string],
- * // Position on the page to load this module at
- * 'position' => ['bottom' (default) or 'top']
* // Function that, if it returns true, makes the loader skip this module.
* // The file must contain valid JavaScript for execution in a private function.
* // The file must not contain the "function () {" and "}" wrapper though.
$this->{$member} = $option;
break;
// Single strings
- case 'position':
case 'group':
case 'skipFunction':
$this->{$member} = (string)$option;
// Single booleans
case 'debugRaw':
case 'raw':
+ case 'noflip':
$this->{$member} = (bool)$option;
break;
}
return $this->group;
}
- /**
- * @return string
- */
- public function getPosition() {
- return $this->position;
- }
-
/**
* Gets list of names of modules this module depends on.
* @param ResourceLoaderContext|null $context
// - dependencies (provided via startup module)
// - targets
// - group (provided via startup module)
- // - position (only used by OutputPage)
'scripts',
'debugScripts',
'styles',
* @return bool
*/
public function getFlip( $context ) {
- return $context->getDirection() === 'rtl';
+ return $context->getDirection() === 'rtl' && !$this->noflip;
}
/**