Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
SpecialEditGrowthConfigRedirect
0.00% covered (danger)
0.00%
0 / 7
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 execute
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace GrowthExperiments\Specials;
4
5use MediaWiki\SpecialPage\SpecialPage;
6
7/**
8 * An implementation for Special:EditGrowthConfig when CommunityConfiguration extension is enabled
9 */
10class SpecialEditGrowthConfigRedirect extends SpecialPage {
11
12    public function __construct() {
13        parent::__construct( 'EditGrowthConfig', '', false );
14    }
15
16    /**
17     * @inheritDoc
18     */
19    public function execute( $subPage ) {
20        parent::execute( $subPage );
21
22        $this->getOutput()->redirect(
23            $this->getSpecialPageFactory()
24                ->getTitleForAlias( 'CommunityConfiguration' )
25                ->getLinkURL()
26        );
27    }
28}