mediawiki-extensions-AbuseF.../includes/EditBox/EditBoxField.php
Umherirrender c3af3157b4 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I48fcc02c61d423c9c5111ae545634fdc5c5cc710
2024-06-12 20:01:35 +02:00

31 lines
667 B
PHP

<?php
namespace MediaWiki\Extension\AbuseFilter\EditBox;
use MediaWiki\HTMLForm\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;
}
}