diff --git a/modules/custom/az_person/az_person.module b/modules/custom/az_person/az_person.module index 4b70c25c5e..5976efac6b 100644 --- a/modules/custom/az_person/az_person.module +++ b/modules/custom/az_person/az_person.module @@ -61,3 +61,17 @@ function az_person_preprocess_field(array &$variables) { } } } + +/** + * Implements hook_theme(). + */ +function az_person_theme() { + $base_hook = [ + 'base hook' => 'field_group_html_element', + ]; + return [ + 'field_group_html_element__node__az_person__h1' => $base_hook, + 'field_group_html_element__node__az_person__h2' => $base_hook, + 'field_group_html_element__node__az_person__h3' => $base_hook, + ]; +} diff --git a/themes/custom/az_barrio/templates/field_group/field-group-html-element--h1.html.twig b/modules/custom/az_person/templates/field-group-html-element--node--az-person--h1.html.twig similarity index 100% rename from themes/custom/az_barrio/templates/field_group/field-group-html-element--h1.html.twig rename to modules/custom/az_person/templates/field-group-html-element--node--az-person--h1.html.twig diff --git a/themes/custom/az_barrio/templates/field_group/field-group-html-element--h2.html.twig b/modules/custom/az_person/templates/field-group-html-element--node--az-person--h2.html.twig similarity index 100% rename from themes/custom/az_barrio/templates/field_group/field-group-html-element--h2.html.twig rename to modules/custom/az_person/templates/field-group-html-element--node--az-person--h2.html.twig diff --git a/themes/custom/az_barrio/templates/field_group/field-group-html-element--h3.html.twig b/modules/custom/az_person/templates/field-group-html-element--node--az-person--h3.html.twig similarity index 100% rename from themes/custom/az_barrio/templates/field_group/field-group-html-element--h3.html.twig rename to modules/custom/az_person/templates/field-group-html-element--node--az-person--h3.html.twig diff --git a/themes/custom/az_barrio/templates/field_group/field-group-html-element--h4.html.twig b/themes/custom/az_barrio/templates/field_group/field-group-html-element--h4.html.twig deleted file mode 100644 index ca4e9fa027..0000000000 --- a/themes/custom/az_barrio/templates/field_group/field-group-html-element--h4.html.twig +++ /dev/null @@ -1,29 +0,0 @@ -{# -/** - * @file - * Default theme implementation for a fieldgroup html element. - * - * Available variables: - * - title: Title of the group. - * - title_element: Element to wrap the title. - * - children: The children of the group. - * - wrapper_element: The html element to use - * - attributes: A list of HTML attributes for the group wrapper. - * - * @see template_preprocess_field_group_html_element() - * - * @ingroup themeable - */ -#} -<{{ wrapper_element }} {{ attributes }}> -{% if title %} - <{{ title_element }}{{ title_attributes }}>{{ title }} -{% endif %} -{% if collapsible %} -
-{% endif %} -{% apply spaceless %}{{children}}{% endapply %} -{% if collapsible %} -
-{% endif %} -