function swagger_ui_formatter_cache_flush in Swagger UI Field Formatter 8.2
Same name and namespace in other branches
- 8.3 swagger_ui_formatter.module \swagger_ui_formatter_cache_flush()
Implements hook_cache_flush().
File
- ./
swagger_ui_formatter.module, line 205 - Main module file for Swagger UI Field Formatter.
Code
function swagger_ui_formatter_cache_flush() {
\Drupal::cache()
->invalidate(SWAGGER_UI_FORMATTER_LIBRARY_PATH_CID);
\Drupal::cache()
->invalidate(SWAGGER_UI_FORMATTER_SVG_DEFINITION_CID);
}