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

Breadcrumb

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

function ActiveTheme::__construct

Constructs an ActiveTheme object.

Parameters

array $values: The properties of the object, keyed by the names.

File

core/lib/Drupal/Core/Theme/ActiveTheme.php, line 99

Class

ActiveTheme
Defines a theme and its information needed at runtime.

Namespace

Drupal\Core\Theme

Code

public function __construct(array $values) {
    $values += [
        'path' => '',
        'engine' => 'twig',
        'owner' => 'twig',
        'logo' => '',
        'libraries' => [],
        'extension' => 'html.twig',
        'base_theme_extensions' => [],
        'regions' => [],
        'libraries_override' => [],
        'libraries_extend' => [],
    ];
    $this->name = $values['name'];
    $this->logo = $values['logo'];
    $this->path = $values['path'];
    $this->engine = $values['engine'];
    $this->owner = $values['owner'];
    $this->libraries = $values['libraries'];
    $this->extension = $values['extension'];
    $this->baseThemeExtensions = $values['base_theme_extensions'];
    $this->regions = $values['regions'];
    $this->librariesOverride = $values['libraries_override'];
    $this->librariesExtend = $values['libraries_extend'];
}

API Navigation

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