MediaWiki master
SubmitAction.php
Go to the documentation of this file.
1<?php
10namespace MediaWiki\Actions;
11
17class SubmitAction extends EditAction {
18
20 public function getName() {
21 return 'submit';
22 }
23
25 public function show() {
26 // Send a cookie so anons get talk message notifications
27 $this->getRequest()->getSession()->persist();
28
29 parent::show();
30 }
31}
32
34class_alias( SubmitAction::class, 'SubmitAction' );
getRequest()
Get the WebRequest being used for this instance.
Definition Action.php:112
Page edition handler (action=edit)
This is the same as EditAction; except that it sets the session cookie.
getName()
to override string