first commit

This commit is contained in:
2024-07-15 12:33:27 +02:00
commit ce50ae282b
22084 changed files with 2623791 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Default settings of {{ name }} theme.
example: 'foo'

View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
/**
* @file
* Theme settings form for {{ name }} theme.
*/
use Drupal\Core\Form\FormState;
/**
* Implements hook_form_system_theme_settings_alter().
*/
function {{ machine_name }}_form_system_theme_settings_alter(array &$form, FormState $form_state): void {
$form['{{ machine_name }}'] = [
'#type' => 'details',
'#title' => t('{{ name }}'),
'#open' => TRUE,
];
$form['{{ machine_name }}']['example'] = [
'#type' => 'textfield',
'#title' => t('Example'),
'#default_value' => theme_get_setting('example'),
];
}

View File

@@ -0,0 +1,8 @@
# Schema for the configuration files of the {{ name }} theme.
{{ machine_name }}.settings:
type: theme_settings
label: '{{ name }} settings'
mapping:
example:
type: string
label: Example