function StarterKit::postProcess

Same name in other branches
  1. 10 core/themes/starterkit_theme/src/StarterKit.php \Drupal\starterkit_theme\StarterKit::postProcess()
  2. 11.x core/themes/starterkit_theme/src/StarterKit.php \Drupal\starterkit_theme\StarterKit::postProcess()

Overrides StarterKitInterface::postProcess

File

core/themes/starterkit_theme/src/StarterKit.php, line 13

Class

StarterKit

Namespace

Drupal\starterkit_theme

Code

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));
}

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