You are here

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

Same name and namespace in other branches
  1. 8.2 src/GeshiFilterCss.php \Drupal\geshifilter\GeshiFilterCss::languageCssPath()

Get the path for css file.

Parameters

bool $dironly: TRUE if wants only the dir, FALSE for the full path + file.

Return value

string Full path to css file.

3 calls to GeshiFilterCss::languageCssPath()
GeshiFilterCss::generateLanguagesCssFile in src/GeshiFilterCss.php
Function for generating the external stylesheet.
GeshiFilterCss::managedExternalStylesheetPossible in src/GeshiFilterCss.php
Helper for checking if an automatically managed style sheet is possible.
geshifilter_library_info_alter in ./geshifilter.module
Implements hook_library_info_alter().

File

src/GeshiFilterCss.php, line 52

Class

GeshiFilterCss
Helper functions to work with css.

Namespace

Drupal\geshifilter

Code

public static function languageCssPath($dironly = FALSE) {
  $directory = file_default_scheme() . '://geshi';
  if (!$dironly) {
    $directory .= '/geshifilter-languages.css';
  }
  return $directory;
}