function GenerateTheme::__construct

Same name in other branches
  1. 10 core/lib/Drupal/Core/Command/GenerateTheme.php \Drupal\Core\Command\GenerateTheme::__construct()
  2. 11.x core/lib/Drupal/Core/Command/GenerateTheme.php \Drupal\Core\Command\GenerateTheme::__construct()

File

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

Class

GenerateTheme
Generates a new theme based on latest default markup.

Namespace

Drupal\Core\Command

Code

public function __construct(string $name = NULL) {
    parent::__construct($name);
    $this->root = dirname(__DIR__, 5);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.