public function ModuleHandler::writeCache in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::writeCache()
- 10 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::writeCache()
Write the hook implementation info to the cache.
Overrides ModuleHandlerInterface::writeCache
File
- core/
lib/ Drupal/ Core/ Extension/ ModuleHandler.php, line 335
Class
- ModuleHandler
- Class that manages modules in a Drupal installation.
Namespace
Drupal\Core\ExtensionCode
public function writeCache() {
if ($this->cacheNeedsWriting) {
$this->cacheBackend
->set('module_implements', $this->implementations);
$this->cacheNeedsWriting = FALSE;
}
}