Skip to content

Commit

Permalink
Merge pull request #78 from ubc-web-services/d10
Browse files Browse the repository at this point in the history
D10
  • Loading branch information
occupant authored Jan 31, 2024
2 parents 4a7700e + 5e56f37 commit 3113b38
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
39 changes: 11 additions & 28 deletions ubc_paragraph_entities/ubc_paragraph_entities.module
Original file line number Diff line number Diff line change
@@ -1,56 +1,39 @@
<?php

/**
* Implements HOOK_theme_suggestions_HOOK_alter
*/
/* function ubc_paragraph_entities_theme_suggestions_paragraph_alter(&$suggestions, array $variables) {
$paragraph = $variables['elements']['#paragraph'];
$sanitized_view_mode = strtr($variables['elements']['#view_mode'], '.', '_');

$suggestions[] = 'ubc_paragraph__' . $sanitized_view_mode;
$suggestions[] = 'ubc_paragraph__' . $paragraph->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'
],
];
}
*/

0 comments on commit 3113b38

Please sign in to comment.