Skip to content

Commit

Permalink
feat: more twig template suggestions for views, users, forms, and fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Callin Mullaney committed Dec 13, 2024
1 parent 7b6cf46 commit 4cf3e49
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
5 changes: 0 additions & 5 deletions emulsify.libraries.yml
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
base:
version: VERSION
css:
theme:
dist/css/style.css: {}
2 changes: 1 addition & 1 deletion emulsify.theme
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
2 changes: 1 addition & 1 deletion whisk/whisk.info.emulsify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- 'drupal:emulsify_tools (^4.0)'

libraries:
- whisk/base
- whisk/global

regions:
header: Header
Expand Down
6 changes: 4 additions & 2 deletions whisk/whisk.libraries.yml
Original file line number Diff line number Diff line change
@@ -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 }

0 comments on commit 4cf3e49

Please sign in to comment.