mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles
synced 2024-11-27 17:50:29 +00:00
37fc1df457
SPDX released version 3 of their license list (<https://spdx.org/licenses/>), which changed the FSF licenses to explicitly end in -only or -or-later instead of relying on an easy to miss + symbol. Bug: T183858 Change-Id: Ic9accb2eb34bc32d455f48dfe81a91d23a2d5f5e
24 lines
409 B
PHP
24 lines
409 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 ] );
|
|
}
|
|
|
|
protected function getContentClass() {
|
|
return TemplateStylesContent::class;
|
|
}
|
|
}
|