function rrssb_cache_flush in Ridiculously Responsive Social Sharing Buttons 8.2
Implements hook_cache_flush().
2 calls to rrssb_cache_flush()
- RRSSBSettingsForm::save in src/
Form/ RRSSBSettingsForm.php - Form submission handler for the 'save' action.
- rrssb_update_8201 in ./
rrssb.install - Update to multiple button sets.
File
- ./
rrssb.module, line 86
Code
function rrssb_cache_flush() {
// Delete auto-generated CSS.
if ($old = \Drupal::state()
->get('rrssb_css_file')) {
\Drupal::service('file_system')
->delete($old);
}
\Drupal::state()
->delete('rrssb_css_file');
}