Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
EditAction
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 3
12
0.00% covered (danger)
0.00%
0 / 1
 getName
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getDescription
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 onView
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace MediaWiki\Extension\ParserMigration;
4
5use FormlessAction;
6
7class EditAction extends FormlessAction {
8    /**
9     * @return string
10     */
11    public function getName() {
12        return 'parsermigration-edit';
13    }
14
15    /**
16     * @return string
17     */
18    protected function getDescription() {
19        return $this->msg( 'parsermigration-edit-subtitle' )->escaped();
20    }
21
22    /**
23     * @return null
24     */
25    public function onView() {
26        $page = new MigrationEditPage( $this->getContext(), $this->getTitle() );
27        $page->edit();
28        return null;
29    }
30}