You are here

public function ModuleHandler::writeCache in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::writeCache()
  2. 9 core/lib/Drupal/Core/Extension/ModuleHandler.php \Drupal\Core\Extension\ModuleHandler::writeCache()

File

core/lib/Drupal/Core/Extension/ModuleHandler.php, line 327

Class

ModuleHandler
Class that manages modules in a Drupal installation.

Namespace

Drupal\Core\Extension

Code

public function writeCache() {
  if ($this->cacheNeedsWriting) {
    $this->cacheBackend
      ->set('module_implements', $this->implementations);
    $this->cacheNeedsWriting = FALSE;
  }
}