38 protected $origin = self::ORIGIN_USER_INDIVIDUAL;
47 if ( !$user || !$user->isRegistered() || $tempUserConfig->isTempName( $user->getName() ) ) {
57 $userPage = $titleFormatter->getPrefixedDBkey(
new TitleValue(
NS_USER, $user->getName() ) );
58 $pages[
"$userPage/common.css"] = [
'type' =>
'style' ];
59 $pages[
"$userPage/" . $context->
getSkin() .
'.css'] = [
'type' =>
'style' ];
65 ->getUserEffectiveGroups( $user );
66 foreach ( $effectiveGroups as
$group ) {
70 $pages[
"MediaWiki:Group-$group.css"] = [
'type' =>
'style' ];
81 return self::LOAD_STYLES;
90 return self::GROUP_USER;
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.