Skip to content

Commit c4e9938

Browse files
authored
Issue #3486893, #3478484, #3483064, #3415662, by joshua1234511, richardgaunt, fionamorrison23, febdao, gargsuchi, sonam.chaturvedi, mwjansen, alex.skrypnyk: Add opt-in for controlling what form elements are rendered via civictheme system. (#1306)
1 parent 5c9f5eb commit c4e9938

File tree

12 files changed

+1511
-44
lines changed

12 files changed

+1511
-44
lines changed

tests/behat/features/form_elements.core_form_elements.feature

Lines changed: 383 additions & 0 deletions
Large diffs are not rendered by default.

tests/behat/features/form_elements.webform_form_elements.feature

Lines changed: 265 additions & 0 deletions
Large diffs are not rendered by default.

web/modules/custom/civictheme_dev/civictheme_dev.module

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ function civictheme_dev_preprocess_html(array &$variables): void {
3939
* Implements hook_styleguide_alter().
4040
*/
4141
function civictheme_dev_styleguide_alter(array &$items): void {
42-
// Remove password_confirm field from the form as CivicTheme does not support
43-
// it.
44-
unset($items['form']['content']['password_confirm']);
45-
4642
_civictheme_dev_styleguide__form_test__textfield($items);
4743
_civictheme_dev_styleguide__form_test__textarea($items);
4844
_civictheme_dev_styleguide__form_test__select($items);
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
civictheme_dev.styleguide_form:
2+
path: '/civictheme-core-form-elements'
3+
defaults:
4+
_form: 'Drupal\civictheme_dev\Form\CoreFormElementsForm'
5+
_title: 'CivicTheme Core Form Elements Form'
6+
requirements:
7+
_permission: 'access content'
8+
civictheme_dev.admin_styleguide_form:
9+
path: '/admin/structure/civictheme-core-form-elements'
10+
defaults:
11+
_form: 'Drupal\civictheme_dev\Form\CoreFormElementsForm'
12+
_title: 'Core Form Elements Form (Admin Theme)'
13+
requirements:
14+
_permission: 'view the administration theme'

0 commit comments

Comments
 (0)