class StarterKit

Same name in other branches
  1. 9 core/themes/starterkit_theme/src/StarterKit.php \Drupal\starterkit_theme\StarterKit
  2. 10 core/themes/starterkit_theme/src/StarterKit.php \Drupal\starterkit_theme\StarterKit

Hierarchy

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 7

Namespace

Drupal\starterkit_theme
View source
final class StarterKit implements StarterKitInterface {
    
    /**
     * {@inheritdoc}
     */
    public static function postProcess(string $working_dir, string $machine_name, string $theme_name) : void {
        $readme_file = "{$working_dir}/README.md";
        try {
            file_put_contents($readme_file, "{$theme_name} theme, generated from starterkit_theme. Additional information on generating themes can be found in the [Starterkit documentation](https://www.drupal.org/docs/core-modules-and-themes/core-themes/starterkit-theme).");
        } catch (\Throwable) {
        }
    }

}

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.