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