public static function GeshiFilterCss::managedExternalStylesheetPossible in GeSHi Filter for syntax highlighting 8.2
Same name and namespace in other branches
- 8 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.
2 calls to GeshiFilterCss::managedExternalStylesheetPossible()
- GeshiFilterSettingsForm::validateForm in src/
Form/ GeshiFilterSettingsForm.php - Form validation handler.
- geshifilter_requirements in ./
geshifilter.install - Implements hook_requirements().
File
- src/
GeshiFilterCss.php, line 39
Class
- GeshiFilterCss
- Helper functions to work with css.
Namespace
Drupal\geshifilterCode
public static function managedExternalStylesheetPossible() {
$directory = self::languageCssPath(TRUE);
return \Drupal::service('file_system')
->prepareDirectory($directory, FileSystemInterface::CREATE_DIRECTORY | FileSystemInterface::MODIFY_PERMISSIONS);
}