From 4cf3e49b2466d9b6ffe864187dad4f296213c2dd Mon Sep 17 00:00:00 2001 From: Callin Mullaney <57088-callinmullaney@users.noreply.drupalcode.org> Date: Fri, 13 Dec 2024 11:16:28 -0600 Subject: [PATCH] feat: more twig template suggestions for views, users, forms, and fields --- emulsify.libraries.yml | 5 ----- emulsify.theme | 2 +- whisk/whisk.info.emulsify.yml | 2 +- whisk/whisk.libraries.yml | 6 ++++-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/emulsify.libraries.yml b/emulsify.libraries.yml index ef973a94..e69de29b 100644 --- a/emulsify.libraries.yml +++ b/emulsify.libraries.yml @@ -1,5 +0,0 @@ -base: - version: VERSION - css: - theme: - dist/css/style.css: {} diff --git a/emulsify.theme b/emulsify.theme index 36634c22..ff83df3f 100644 --- a/emulsify.theme +++ b/emulsify.theme @@ -12,7 +12,7 @@ * * @inheritdoc */ -function emulsify_suggestions_alter(&$suggestions, $variables, $hook) { +function emulsify_theme_suggestions_alter(&$suggestions, $variables, $hook) { if ($hook == 'field') { $suggestions[] = 'field__' . $variables['element']['#entity_type'] . '__' . $variables['element']['#field_name']; $suggestions[] = 'field__' . $variables['element']['#entity_type'] . '__' . $variables['element']['#field_name'] . '__' . $variables['element']['#bundle'] . '__' . $variables['element']['#view_mode']; diff --git a/whisk/whisk.info.emulsify.yml b/whisk/whisk.info.emulsify.yml index f03a60ec..4b104b7a 100644 --- a/whisk/whisk.info.emulsify.yml +++ b/whisk/whisk.info.emulsify.yml @@ -14,7 +14,7 @@ dependencies: - 'drupal:emulsify_tools (^4.0)' libraries: - - whisk/base + - whisk/global regions: header: Header diff --git a/whisk/whisk.libraries.yml b/whisk/whisk.libraries.yml index 725b76b8..72e8e197 100644 --- a/whisk/whisk.libraries.yml +++ b/whisk/whisk.libraries.yml @@ -1,5 +1,7 @@ -base: +global: version: VERSION css: theme: - dist/css/style.css: { minified: true } + dist/global/foundation.css: { minified: true } + dist/global/layout.css: { minified: true } + dist/global/tokens.css: { minified: true }