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

Breadcrumb

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

function HtmlDumper::setTheme

File

vendor/symfony/var-dumper/Dumper/HtmlDumper.php, line 93

Class

HtmlDumper
HtmlDumper dumps variables as HTML.

Namespace

Symfony\Component\VarDumper\Dumper

Code

public function setTheme(string $themeName) : void {
    if (!isset(static::$themes[$themeName])) {
        throw new \InvalidArgumentException(\sprintf('Theme "%s" does not exist in class "%s".', $themeName, static::class));
    }
    $this->setStyles(static::$themes[$themeName]);
}

API Navigation

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