You are here

public static function GeshiFilterCss::generateCss in GeSHi Filter for syntax highlighting 8

Same name and namespace in other branches
  1. 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'
geshifilter.routing.yml in ./geshifilter.routing.yml
geshifilter.routing.yml

File

src/GeshiFilterCss.php, line 24

Class

GeshiFilterCss
Helper functions to work with css.

Namespace

Drupal\geshifilter

Code

public static function generateCss() {
  $headers = [];
  $headers['Content-type'] = 'text/css';
  $css = self::generateLanguagesCssRules();
  $response = new Response($css, 200, $headers);
  return $response;
}