mediawiki-extensions-Templa.../includes/TemplateStylesContentHandler.php

24 lines
409 B
PHP
Raw Permalink Normal View History

<?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;
}
}