2017-02-20 04:33:24 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-06 14:39:49 +00:00
|
|
|
namespace MediaWiki\Extension\TemplateStyles;
|
|
|
|
|
2024-10-20 11:21:02 +00:00
|
|
|
use MediaWiki\Content\TextContent;
|
2022-02-06 14:39:49 +00:00
|
|
|
|
2017-02-20 04:33:24 +00:00
|
|
|
/**
|
|
|
|
* @file
|
2018-03-02 23:43:40 +00:00
|
|
|
* @license GPL-2.0-or-later
|
2017-02-20 04:33:24 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Content object for sanitized CSS.
|
|
|
|
*/
|
|
|
|
class TemplateStylesContent extends TextContent {
|
|
|
|
|
2020-10-15 06:53:57 +00:00
|
|
|
/**
|
|
|
|
* @param string $text
|
|
|
|
* @param string $modelId
|
|
|
|
*/
|
2017-02-20 04:33:24 +00:00
|
|
|
public function __construct( $text, $modelId = 'sanitized-css' ) {
|
|
|
|
parent::__construct( $text, $modelId );
|
|
|
|
}
|
|
|
|
}
|