interface StarterKitInterface

Same name in other branches
  1. 9 core/lib/Drupal/Core/Theme/StarterKitInterface.php \Drupal\Core\Theme\StarterKitInterface
  2. 11.x core/lib/Drupal/Core/Theme/StarterKitInterface.php \Drupal\Core\Theme\StarterKitInterface

Allows starter kits to interact with theme generation.

Hierarchy

Expanded class hierarchy of StarterKitInterface

All classes that implement StarterKitInterface

2 files declare their use of StarterKitInterface
GenerateTheme.php in core/lib/Drupal/Core/Command/GenerateTheme.php
StarterKit.php in core/themes/starterkit_theme/src/StarterKit.php

File

core/lib/Drupal/Core/Theme/StarterKitInterface.php, line 8

Namespace

Drupal\Core\Theme
View source
interface StarterKitInterface {
    
    /**
     * Performs post-processing of a generated theme.
     *
     * @param string $working_dir
     *   The working directory of the template being generated.
     * @param string $machine_name
     *   The theme's machine name.
     * @param string $theme_name
     *   The theme's name.
     */
    public static function postProcess(string $working_dir, string $machine_name, string $theme_name) : void;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
StarterKitInterface::postProcess public static function Performs post-processing of a generated theme. 1

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