mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 07:43:47 +00:00
Deprecate PersonalUrls hook
* Updated usages to use SkinTemplateNavigation::Universal in preparation for the hard deprecation and removal of the hook. Bug: T310017 Change-Id: I133c7479da294c0b8c908ad8d34690297f08200b
This commit is contained in:
parent
948027450e
commit
3a10708b4e
|
@ -202,13 +202,6 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
|
|||
$context->setLanguage( 'fr' );
|
||||
$vectorTemplate = $this->provideVectorTemplateObject();
|
||||
$vectorTemplate->setContext( $context );
|
||||
$this->setTemporaryHook( 'PersonalUrls', [
|
||||
static function ( &$personal_urls, &$title, $skin ) {
|
||||
$personal_urls = [
|
||||
'pt-1' => [ 'text' => 'pt1' ],
|
||||
];
|
||||
}
|
||||
] );
|
||||
$this->setTemporaryHook( 'SkinTemplateNavigation::Universal', [
|
||||
static function ( &$skinTemplate, &$content_navigation ) {
|
||||
$content_navigation['actions'] = [
|
||||
|
@ -227,6 +220,9 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase {
|
|||
]
|
||||
];
|
||||
$content_navigation['views'] = [];
|
||||
$content_navigation['user-menu'] = [
|
||||
'pt-1' => [ 'text' => 'pt1' ],
|
||||
];
|
||||
}
|
||||
] );
|
||||
$openVectorTemplate = TestingAccessWrapper::newFromObject( $vectorTemplate );
|
||||
|
|
Loading…
Reference in a new issue