Skip to content

Commit

Permalink
Restrict templates to AZ Person, add theme hook
Browse files Browse the repository at this point in the history
  • Loading branch information
bberndt-uaz committed Nov 7, 2024
1 parent a1c8915 commit ddb4640
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 29 deletions.
14 changes: 14 additions & 0 deletions modules/custom/az_person/az_person.module
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
}

This file was deleted.

0 comments on commit ddb4640

Please sign in to comment.