Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
EnableFlowWikitextConversionStrategy | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
meetsSubpageRequirements | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Flow\Import\EnableFlow; |
4 | |
5 | use Flow\Import\Wikitext\ConversionStrategy; |
6 | use MediaWiki\Title\Title; |
7 | |
8 | class EnableFlowWikitextConversionStrategy extends ConversionStrategy { |
9 | /** |
10 | * @inheritDoc |
11 | */ |
12 | public function meetsSubpageRequirements( Title $sourceTitle ) { |
13 | // If they're using Special:EnableFlow, they're choosing a specific page |
14 | // one at a time, so assume they know what they're doing. This allows: |
15 | // * Namespace_talk:Foo/bar even if Namespace:Foo/bar does not exist |
16 | // * Namespace:Baz/bang |
17 | return true; |
18 | } |
19 | } |