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

Breadcrumb

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

function ThemeHandlerInterface::getTheme

Returns a theme extension object from the currently active theme list.

Parameters

string $name: The name of the theme to return.

Return value

\Drupal\Core\Extension\Extension An extension object.

Throws

\Drupal\Core\Extension\Exception\UnknownExtensionException Thrown when the requested theme does not exist.

1 method overrides ThemeHandlerInterface::getTheme()
ThemeHandler::getTheme in core/lib/Drupal/Core/Extension/ThemeHandler.php
Returns a theme extension object from the currently active theme list.

File

core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 164

Class

ThemeHandlerInterface
Manages the list of available themes.

Namespace

Drupal\Core\Extension

Code

public function getTheme($name);

API Navigation

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