Feature Request: Extract theme creation from SubthemeManager::submitForm

Created on 14 September 2023, over 1 year ago
Updated 30 September 2023, over 1 year ago

Problem/Motivation

  1. By separation of concern, SubthemeManager can be made useful in other context.
  2. Allow users to use "drush php" to generate a new subtheme instead of relying on the frontend form.
  3. There might be security concern that Drupal does not have write access to the theme folder. Allow other means to generate theme makes is more desirable.

Steps to reproduce

-

Proposed resolution

  1. Extract the logic to create a subtheme from SubthemeManager::submitForm into its own method.
  2. SubthemeManager::submitForm will create the subtheme through this new method.

Remaining tasks

Implement the code

User interface changes

-

API changes

  • Added new method in SubthemeManager but no change to existing API

Data model changes

-

Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

🇭🇰Hong Kong yookoala

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024