private function GenerateTheme::getVersion in Drupal 9
Gets the current Drupal major version.
Return value
string
1 call to GenerateTheme::getVersion()
- GenerateTheme::execute in core/
lib/ Drupal/ Core/ Command/ GenerateTheme.php
File
- core/
lib/ Drupal/ Core/ Command/ GenerateTheme.php, line 282
Class
- GenerateTheme
- Generates a new theme based on latest default markup.
Namespace
Drupal\Core\CommandCode
private function getVersion() : string {
return explode('.', \Drupal::VERSION)[0];
}