From 8dac4ba12724eaa74445a39ed8a13f4a339ae21e Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Wed, 31 Jan 2024 10:07:34 -0800 Subject: [PATCH 1/2] Update template name --- .../{ubc-paragraph--text.html.twig => paragraph--text.html.twig} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ubc_paragraph_entities/templates/{ubc-paragraph--text.html.twig => paragraph--text.html.twig} (100%) diff --git a/ubc_paragraph_entities/templates/ubc-paragraph--text.html.twig b/ubc_paragraph_entities/templates/paragraph--text.html.twig similarity index 100% rename from ubc_paragraph_entities/templates/ubc-paragraph--text.html.twig rename to ubc_paragraph_entities/templates/paragraph--text.html.twig From 5e56f37ca6d38abc04c5d150f940bd54c9263526 Mon Sep 17 00:00:00 2001 From: James O'Toole Date: Wed, 31 Jan 2024 10:29:04 -0800 Subject: [PATCH 2/2] Fix broken theme template discovery --- .../ubc_paragraph_entities.module | 39 ++++++------------- 1 file changed, 11 insertions(+), 28 deletions(-) diff --git a/ubc_paragraph_entities/ubc_paragraph_entities.module b/ubc_paragraph_entities/ubc_paragraph_entities.module index 70631de..1f283b9 100644 --- a/ubc_paragraph_entities/ubc_paragraph_entities.module +++ b/ubc_paragraph_entities/ubc_paragraph_entities.module @@ -1,56 +1,39 @@ bundle(); - $suggestions[] = 'ubc_paragraph__' . $paragraph->bundle() . '__' . $sanitized_view_mode; -} */ - /** * Implements hook_theme(). */ -/* function ubc_paragraph_entities_theme($existing, $type, $theme, $path) { +function ubc_paragraph_entities_theme($existing, $type, $theme, $path) { return [ - // added back in as suggestion only - 'ubc_paragraph__card' => [ - 'base hook' => 'paragraph' - ], - 'ubc_paragraph__card_group' => [ + 'paragraph__card_group' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__card_horizontal' => [ + 'paragraph__card_horizontal' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__card_vertical' => [ + 'paragraph__card_vertical' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__feature_image' => [ + 'paragraph__feature_image' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__icon_card' => [ + 'paragraph__icon_card' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__image_card' => [ + 'paragraph__image_card' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__slide' => [ + 'paragraph__slide' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__slideshow' => [ + 'paragraph__slideshow' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__tabcordion' => [ + 'paragraph__tabcordion' => [ 'base hook' => 'paragraph' ], - 'ubc_paragraph__text' => [ + 'paragraph__text' => [ 'base hook' => 'paragraph' ], ]; } - */ \ No newline at end of file