
| Current Path : /var/www/html/pallets/web/core/themes/starterkit_theme/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/pallets/web/core/themes/starterkit_theme/src/StarterKit.php |
<?php
namespace Drupal\starterkit_theme;
use Drupal\Component\Serialization\Yaml;
use Drupal\Core\Theme\StarterKitInterface;
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));
}
}