Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / htmlform / fields / HTMLSubmitField.php
blobdd54b8bd183078a68c2c7fae4621f3e5bf903d7e
1 <?php
3 namespace MediaWiki\HTMLForm\Field;
5 /**
6 * Add a submit button inline in the form (as opposed to
7 * HTMLForm::addButton(), which will add it at the end).
9 * @stable to extend
11 class HTMLSubmitField extends HTMLButtonField {
12 /** @inheritDoc */
13 protected $buttonType = 'submit';
15 /** @inheritDoc */
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' );