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

Breadcrumb

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

function GenerateTheme::__construct

GenerateTheme constructor.

Parameters

string|null $name: The name of the command; passing null means it must be set in configure().

string|null $root: The path for the Drupal root.

Overrides Command::__construct

File

core/lib/Drupal/Core/Command/GenerateTheme.php, line 47

Class

GenerateTheme
Generates a new theme based on latest default markup.

Namespace

Drupal\Core\Command

Code

public function __construct(?string $name = NULL, ?string $root = NULL) {
    parent::__construct($name);
    $this->root = $root ?? dirname(__DIR__, 5);
}
RSS feed
Powered by Drupal