3 namespace MediaWiki\HTMLForm\Field
;
6 * Add a submit button inline in the form (as opposed to
7 * HTMLForm::addButton(), which will add it at the end).
11 class HTMLSubmitField
extends HTMLButtonField
{
13 protected $buttonType = 'submit';
16 protected $mFlags = [ 'primary', 'progressive' ];
18 public function skipLoadData( $request ) {
19 return !$request->getCheck( $this->mName
);
22 public function loadDataFromRequest( $request ) {
23 return $request->getCheck( $this->mName
);
27 /** @deprecated class alias since 1.42 */
28 class_alias( HTMLSubmitField
::class, 'HTMLSubmitField' );