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

Breadcrumb

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

function ThemeHandler::themeExists

Overrides ThemeHandlerInterface::themeExists

File

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

Class

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

Namespace

Drupal\Core\Extension

Code

public function themeExists($theme) {
    $themes = $this->listInfo();
    return isset($themes[$theme]);
}

API Navigation

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