19 public function run() {
20 $services = MediaWikiServices::getInstance();
21 $ticket = $services->getDBLoadBalancerFactory()->getEmptyTransactionTicket( __METHOD__ );
24 $wikiPage = $services->getWikiPageFactory()->newFromID( $this->params[
'wikiPageId'] );
26 $deletePage = $services->getDeletePageFactory()->newDeletePage(
28 $services->getUserFactory()->newFromId( $this->params[
'userId'] )
31 ->setSuppress( $this->params[
'suppress'] )
32 ->setTags( json_decode( $this->params[
'tags'] ) )
33 ->setLogSubtype( $this->params[
'logsubtype'] )
34 ->setDeletionAttempted()
38 $this->params[
'pageRole'] ?? DeletePage::PAGE_BASE,
39 $this->params[
'reason'],