sample files from a smithsonian project

This commit is contained in:
2024-05-22 00:26:01 -04:00
commit 265541edc3
76 changed files with 2140 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
/**
* Implements hook_theme_suggestions_field_alter().
*/
function cdesai_emulsify_theme_suggestions_field_alter(array &$suggestions, array $variables) {
$suggestions[] = 'field__' . $variables['element']['#entity_type'] . '__' . $variables['element']['#field_name'] . '__' . $variables['element']['#view_mode'];
$suggestions[] = 'field__' . $variables['element']['#entity_type'] . '__' . $variables['element']['#field_name'] . '__' . $variables['element']['#bundle'] . '__' . $variables['element']['#view_mode'];
}
/**
* Implements hook_preprocess_field__HOOK().
*/
function cdesai_emulsify_preprocess_field__paragraph__field_title__horizontal_tab(&$variables) {
if (!empty($variables['element']['#id_prefix'])) {
$variables['id_prefix'] = $variables['element']['#id_prefix'];
}
}