Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\CommunityConfiguration\EditorCapabilities; |
4 | |
5 | use Psr\Log\LoggerAwareInterface; |
6 | |
7 | interface IEditorCapability extends LoggerAwareInterface { |
8 | |
9 | /** |
10 | * Code that executes the capability |
11 | * |
12 | * This method should render whatever interface is needed to create the capability. It will |
13 | * be called from SpecialPage::execute, and it can assume it has complete control over the |
14 | * special page. |
15 | * |
16 | * @param string|null $subpage |
17 | * @return void |
18 | */ |
19 | public function execute( ?string $subpage ): void; |
20 | } |