You are here

public function ThemeHandlerInterface::addTheme in Drupal 10

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

Adds a theme extension to the internal listing.

Parameters

\Drupal\Core\Extension\Extension $theme: The theme extension.

1 method overrides ThemeHandlerInterface::addTheme()
ThemeHandler::addTheme in core/lib/Drupal/Core/Extension/ThemeHandler.php
Adds a theme extension to the internal listing.

File

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

Class

ThemeHandlerInterface
Manages the list of available themes.

Namespace

Drupal\Core\Extension

Code

public function addTheme(Extension $theme);