class StarterKit
Same name in other branches
- 10 core/themes/starterkit_theme/src/StarterKit.php \Drupal\starterkit_theme\StarterKit
- 11.x core/themes/starterkit_theme/src/StarterKit.php \Drupal\starterkit_theme\StarterKit
Hierarchy
- class \Drupal\starterkit_theme\StarterKit implements \Drupal\Core\Theme\StarterKitInterface
Expanded class hierarchy of StarterKit
1 string reference to 'StarterKit'
- GenerateTheme::execute in core/
lib/ Drupal/ Core/ Command/ GenerateTheme.php
File
-
core/
themes/ starterkit_theme/ src/ StarterKit.php, line 8
Namespace
Drupal\starterkit_themeView source
final class StarterKit implements StarterKitInterface {
/**
* {@inheritdoc}
*/
public static function postProcess(string $working_dir, string $machine_name, string $theme_name) : void {
$info_file = "{$working_dir}/{$machine_name}.info.yml";
$info = Yaml::decode(file_get_contents($info_file));
unset($info['hidden']);
file_put_contents($info_file, Yaml::encode($info));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
StarterKit::postProcess | public static | function | Performs post-processing of a generated theme. | Overrides StarterKitInterface::postProcess |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.