public static function GeshiFilterCss::generateCss in GeSHi Filter for syntax highlighting 8
Same name and namespace in other branches
- 8.2 src/GeshiFilterCss.php \Drupal\geshifilter\GeshiFilterCss::generateCss()
Create the page that show the css in use.
Return value
\Symfony\Component\HttpFoundation\Response Return the css to show.
1 string reference to 'GeshiFilterCss::generateCss'
File
- src/
GeshiFilterCss.php, line 24
Class
- GeshiFilterCss
- Helper functions to work with css.
Namespace
Drupal\geshifilterCode
public static function generateCss() {
$headers = [];
$headers['Content-type'] = 'text/css';
$css = self::generateLanguagesCssRules();
$response = new Response($css, 200, $headers);
return $response;
}