mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-15 11:59:52 +00:00
24 lines
441 B
PHP
24 lines
441 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @file
|
||
|
* @license https://opensource.org/licenses/GPL-2.0 GPL-2.0+
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Content handler for sanitized CSS
|
||
|
*/
|
||
|
class TemplateStylesContentHandler extends CodeContentHandler {
|
||
|
|
||
|
/**
|
||
|
* @param string $modelId
|
||
|
*/
|
||
|
public function __construct( $modelId = 'sanitized-css' ) {
|
||
|
parent::__construct( $modelId, [ CONTENT_FORMAT_CSS ] );
|
||
|
}
|
||
|
|
||
|
protected function getContentClass() {
|
||
|
return TemplateStylesContent::class;
|
||
|
}
|
||
|
}
|