checkFormat( $format ); return new CssContent( $text ); } /** * @return CssContent A new CssContent object with empty text. * * @see ContentHandler::makeEmptyContent() */ public function makeEmptyContent() { return new CssContent( '' ); } /** * Returns the english language, because CSS is english, and should be handled as such. * * @param Title $title * @param Content $content * * @return Language wfGetLangObj( 'en' ) * * @see ContentHandler::getPageLanguage() */ public function getPageLanguage( Title $title, Content $content = null ) { return wfGetLangObj( 'en' ); } /** * Returns the english language, because CSS is english, and should be handled as such. * * @param Title $title * @param Content $content * * @return Language wfGetLangObj( 'en' ) * * @see ContentHandler::getPageViewLanguage() */ public function getPageViewLanguage( Title $title, Content $content = null ) { return wfGetLangObj( 'en' ); } }