function GenerateTheme::namePatterns
Same name in other branches
- 11.x core/lib/Drupal/Core/Command/GenerateTheme.php \Drupal\Core\Command\GenerateTheme::namePatterns()
1 call to GenerateTheme::namePatterns()
- GenerateTheme::execute in core/
lib/ Drupal/ Core/ Command/ GenerateTheme.php
File
-
core/
lib/ Drupal/ Core/ Command/ GenerateTheme.php, line 352
Class
- GenerateTheme
- Generates a new theme based on latest default markup.
Namespace
Drupal\Core\CommandCode
private static function namePatterns(string $machine_name, string $label) : array {
return [
'machine_name' => $machine_name,
'machine_name_camel' => u($machine_name)->camel(),
'machine_name_pascal' => u($machine_name)->camel()
->title(),
'machine_name_title' => u($machine_name)->title(),
'label' => $label,
'label_camel' => u($label)->camel(),
'label_pascal' => u($label)->camel()
->title(),
'label_title' => u($label)->title(),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.