getUserIdentity(); if ( !$user || !$user->isRegistered() ) { return []; } $pages = []; $config = $this->getConfig(); if ( $context->getSkin() === Constants::SKIN_NAME_MODERN && $config->get( 'VectorShareUserScripts' ) && $config->get( MainConfigNames::AllowUserCss ) ) { $titleFormatter = MediaWikiServices::getInstance()->getTitleFormatter(); $userPage = $titleFormatter->getPrefixedDBkey( new TitleValue( NS_USER, $user->getName() ) ); $pages["$userPage/vector.css"] = [ 'type' => 'style' ]; } return $pages; } }