You are here

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

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

Helper for checking if an automatically managed style sheet is possible.

Return value

bool Indicating if an automatically managed style sheet is possible.

1 call to GeshiFilterCss::managedExternalStylesheetPossible()
GeshiFilterSettingsForm::validateForm in src/Form/GeshiFilterSettingsForm.php
Form validation handler.

File

src/GeshiFilterCss.php, line 38

Class

GeshiFilterCss
Helper functions to work with css.

Namespace

Drupal\geshifilter

Code

public static function managedExternalStylesheetPossible() {
  $directory = self::languageCssPath(TRUE);
  return file_prepare_directory($directory, FILE_CREATE_DIRECTORY | FILE_MODIFY_PERMISSIONS);
}