19 public function run() {
20 $services = MediaWikiServices::getInstance();
23 $wikiPage = $services->getWikiPageFactory()->newFromID( $this->params[
'wikiPageId'] );
25 $deletePage = $services->getDeletePageFactory()->newDeletePage(
27 $services->getUserFactory()->newFromId( $this->params[
'userId'] )
30 ->setSuppress( $this->params[
'suppress'] )
31 ->setTags( json_decode( $this->params[
'tags'] ) )
32 ->setLogSubtype( $this->params[
'logsubtype'] )
33 ->setDeletionAttempted()
37 $this->params[
'pageRole'] ?? DeletePage::PAGE_BASE,
38 $this->params[
'reason'],