Initial Drupal 11 with DDEV setup

This commit is contained in:
gluebox
2025-10-08 11:39:17 -04:00
commit 89ef74b305
25344 changed files with 2599172 additions and 0 deletions

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'),
];
}