mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-12-25 03:52:55 +00:00
5377ebe819
composer: * mediawiki/mediawiki-codesniffer: 36.0.0 → 37.0.0 npm: * postcss: 7.0.35 → 7.0.36 * https://npmjs.com/advisories/1693 (CVE-2021-23368) Change-Id: I2b382f3bb236fb44eb24c6a257b13b8fd886541c
31 lines
648 B
PHP
31 lines
648 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Extension\AbuseFilter\EditBox;
|
|
|
|
use HTMLFormField;
|
|
|
|
/**
|
|
* This class is used to easily wrap a filter editor box inside an HTMLForm. For now it's just a transparent
|
|
* wrapper around the given HTML string. In the future, some of the actual logic might be moved here.
|
|
* @unstable
|
|
*/
|
|
class EditBoxField extends HTMLFormField {
|
|
/** @var string */
|
|
private $html;
|
|
|
|
/**
|
|
* @param array $params
|
|
*/
|
|
public function __construct( array $params ) {
|
|
parent::__construct( $params );
|
|
$this->html = $params['html'];
|
|
}
|
|
|
|
/**
|
|
* @inheritDoc
|
|
*/
|
|
public function getInputHTML( $value ): string {
|
|
return $this->html;
|
|
}
|
|
}
|