function LocaleHooks::cacheFlush

Same name and namespace in other branches
  1. 11.x core/modules/locale/src/Hook/LocaleHooks.php \Drupal\locale\Hook\LocaleHooks::cacheFlush()

Implements hook_cache_flush().

Attributes

#[Hook('cache_flush')]

File

core/modules/locale/src/Hook/LocaleHooks.php, line 235

Class

LocaleHooks
Hook implementations for locale.

Namespace

Drupal\locale\Hook

Code

public function cacheFlush() : void {
  \Drupal::state()->delete('system.javascript_parsed');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.