function GenerateTheme::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Command/GenerateTheme.php \Drupal\Core\Command\GenerateTheme::__construct()
- 10 core/lib/Drupal/Core/Command/GenerateTheme.php \Drupal\Core\Command\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.
File
-
core/
lib/ Drupal/ Core/ Command/ GenerateTheme.php, line 47
Class
- GenerateTheme
- Generates a new theme based on latest default markup.
Namespace
Drupal\Core\CommandCode
public function __construct(?string $name = NULL, ?string $root = NULL) {
parent::__construct($name);
$this->root = $root ?? dirname(__DIR__, 5);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.