37 protected $origin = self::ORIGIN_USER_INDIVIDUAL;
46 if ( !$user || !$user->isRegistered() ) {
56 $userPage = $titleFormatter->getPrefixedDBkey(
new TitleValue(
NS_USER, $user->getName() ) );
57 $pages[
"$userPage/common.css"] = [
'type' =>
'style' ];
58 $pages[
"$userPage/" . $context->
getSkin() .
'.css'] = [
'type' =>
'style' ];
64 ->getUserEffectiveGroups( $user );
65 foreach ( $effectiveGroups as
$group ) {
69 $pages[
"MediaWiki:Group-$group.css"] = [
'type' =>
'style' ];
80 return self::LOAD_STYLES;
89 return self::GROUP_USER;
94class_alias( UserStylesModule::class,
'ResourceLoaderUserStylesModule' );
A class containing constants representing the names of configuration variables.
const UseSiteCss
Name constant for the UseSiteCss setting, for use with Config::get()
const AllowUserCss
Name constant for the AllowUserCss setting, for use with Config::get()
Context object that contains information about the state of a specific ResourceLoader web request.
getUserIdentity()
Get the possibly-cached UserIdentity object for the specified username.
Represents a page (or page fragment) title within MediaWiki.
get( $name)
Get a configuration variable such as "Sitename" or "UploadMaintenance.".