Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ThemeHandler.php

function ThemeHandler::refreshInfo

Overrides ThemeHandlerInterface::refreshInfo

File

core/lib/Drupal/Core/Extension/ThemeHandler.php, line 114

Class

ThemeHandler
Default theme handler using the config system to store installation statuses.

Namespace

Drupal\Core\Extension

Code

public function refreshInfo() {
    $installed = $this->configFactory
        ->get('core.extension')
        ->get('theme');
    // Only refresh the info if a theme has been installed. Modules are
    // installed before themes by the installer and this method is called during
    // module installation.
    if (empty($installed) && empty($this->list)) {
        return;
    }
    $this->reset();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal