-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from ubc-web-services/d10
D10
- Loading branch information
Showing
2 changed files
with
11 additions
and
28 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
], | ||
]; | ||
} | ||
*/ |