function GenerateTheme::isStarterkitTheme

Checks if the theme is a starterkit theme.

Parameters

\Drupal\Core\Extension\Extension $theme: The theme extension.

Return value

bool

1 call to GenerateTheme::isStarterkitTheme()
GenerateTheme::execute in core/lib/Drupal/Core/Command/GenerateTheme.php

File

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

Class

GenerateTheme
Generates a new theme based on latest default markup.

Namespace

Drupal\Core\Command

Code

private function isStarterkitTheme(Extension $theme) : bool {
    $info_parser = new InfoParser($this->root);
    $info = $info_parser->parse($theme->getPathname());
    return $info['starterkit'] ?? FALSE === TRUE;
}

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