Results
10.06.2020
field_group 8.x-3.1 ::
field_group.module
/**
* Implements hook_theme_registry_alter().
*/
function field_group_theme_registry_alter(&$theme_registry) {
// Inject field_group_build_entity_groups in all entity theming functions.
$entity_info = Drupal::entityTypeManager()->getDefinitions();
$entity_types = [];
foreach ($entity_info as $entity_type_id => $entity_type) {
if ($entity_type->get('field_ui_base_route')) {
* The display context (entity type, form or view).
*
* @see field_group_theme_registry_alter
* @see field_group_fields_nest()
*/
function field_group_build_entity_groups(array &$vars, $context = 'view') {
if (isset($vars['elements'])) {
$element = &$vars['elements'];
} 08.10.2020
field_group_label_classes 8.x-1.2 ::
field_group_label_classes.module
/**
* Implements hook_theme_registry_alter().
*/
function field_group_label_classes_theme_registry_alter(&$theme_registry) {
$theme_registry['field_group_html_element']['path'] = \Drupal::service('extension.list.module')->getPath('field_group_label_classes') . '/templates';
}
/**
* Implements hook_preprocess_HOOK().
*/ 31.08.2020
field_label 8.x-1.0 ::
field_label.module
/**
* Implements hook_theme_registry_alter().
*/
function field_label_theme_registry_alter(&$theme_registry) {
// Only override the field template if it comes from core. Allow theme
// overrides to take precedence.
if (strpos($theme_registry['field']['path'], 'core') !== 0) {
return;
}
// Retain Drupal 8 support for this branch. 21.02.2019
field_menu 8.x-1.0-alpha4 ::
field_menu.module
/**
* Implements hook_theme_registry_alter().
*/
function field_menu_theme_registry_alter(&$theme_registry) {
// Add $field_menu_configuration as a variable to the 'menu' theme hook. Set
// its default value to be an empty array.
$theme_registry['menu']['variables']['field_menu_configuration'] = [];
}
/** 05.10.2020
flag_lists 4.0.x-dev ::
flag_lists.module
/**
* Implements hook_theme_registry_alter().
*/
function flag_lists_theme_registry_alter(&$theme_registry) {
// Prepare for the flagging collection as a variable.
$theme_registry['flag']['variables']['flagging_collection'] = NULL;
}
/**
* Implements hook_theme_suggestions_HOOK(). 24.09.2020
fontawesome 8.x-2.x-dev ::
fontawesome.module
/**
* Implements hook_theme_registry_alter().
*/
function fontawesome_theme_registry_alter(&$theme_registry) {
/*
* By default, Drupal 8 does not include theme suggestions from inside the
* module in which they were created, so we must add them manually here.
*/
$path = \Drupal::service('extension.list.module')->getPath('fontawesome');
$fontawesome_templates = drupal_find_theme_templates($theme_registry, '.html.twig', $path); 05.07.2020
form_inspector 8.x-1.x-dev ::
form_inspector.module
/**
* Implements hook_theme_registry_alter().
*/
function form_inspector_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['form_element'])) {
$theme_registry['form_element']['path'] = \Drupal::service('extension.list.module')->getPath('form_inspector') . '/templates';
}
} 28.08.2020
gin_toolbar 8.x-1.x-dev ::
gin_toolbar.module
* Registry alter().
*/
function gin_toolbar_theme_registry_alter(&$theme_registry) {
$templates_path = \Drupal::service('extension.list.module')->getPath('gin_toolbar') . '/templates';
$theme_registry['toolbar']['path'] = $templates_path;
$theme_registry['toolbar__gin']['path'] = $templates_path;
$theme_registry['menu__toolbar']['path'] = $templates_path;
if (!_gin_toolbar_module_is_active('navigation')) { 24.02.2023
gin_toolbar_custom_menu 1.0.0 ::
gin_toolbar_custom_menu.module
* Registry alter().
*/
function gin_toolbar_custom_menu_theme_registry_alter(&$theme_registry) {
$theme_registry['navigation']['preprocess functions'][] = 'gin_toolbar_custom_menu_preprocess_navigation';
}
/**
* Implements hook_preprocess_HOOK().
*/ 10.06.2024
gin_type_tray 1.0.x-dev ::
gin_type_tray.module
*/
function gin_type_tray_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['type_tray_teaser'])) {
$theme_registry['type_tray_teaser']['template'] = 'type-tray-teaser';
$theme_registry['type_tray_teaser']['path'] = \Drupal::service('extension.list.module')->getPath('gin_type_tray') . '/templates';
$theme_registry['type_tray_teaser']['variables']['content_type_name'] = 'Test';
} 12.10.2020
group_content_menu 8.x-1.0-rc3 ::
group_content_menu.module
/**
* Implements hook_theme_registry_alter().
*/
function group_content_menu_theme_registry_alter(array &$theme_registry): void {
// Add a variable to the "menu" theme hook in order to pass custom values from
// GroupMenuBlock::build. Those custom values are used to generate additional
// theme hook suggestions in the "group_content_menu_theme_suggestions_menu"
// hook below.
$theme_registry['menu']['variables']['group_content_menu'] = [];
} 03.10.2020
hook_event_dispatcher 8.x-2.04 ::
modules/core_event_dispatcher/src/ThemeHookEvents.php
* * @see \Drupal\core_event_dispatcher\Event\Theme\ThemeRegistryAlterEvent * @see core_event_dispatcher_theme_registry_alter() * @see hook_theme_registry_alter() * * @var string */ public const THEME_REGISTRY_ALTER = HookEventDispatcherInterface::PREFIX . 'theme.registry_alter'; /**
10.07.2020
html_title 8.x-1.x-dev ::
html_title.module
/**
* Implements hook_theme_registry_alter().
*/
function html_title_theme_registry_alter(&$theme_registry) {
if (isset($theme_registry['breadcrumb'])) {
$hooks = $theme_registry['breadcrumb']['preprocess functions'];
if (($pos = array_search('html_title_preprocess_breadcrumb', $hooks)) !== FALSE) {
unset($hooks[$pos]);
}
$hooks[] = 'html_title_preprocess_breadcrumb'; 26.03.2020
html_titles 8.x-1.x-dev ::
html_titles.module
/**
* Implements hook_theme_registry_alter().
*/
function html_titles_theme_registry_alter(&$theme_registry) {
$theme_registry['field__node__title']['path'] = \Drupal::service('extension.list.module')->getPath('html_titles'). '/templates';
}
/**
* Implements hook_preprocess_field().
*/ 25.09.2020
htools 8.x-1.x-dev ::
htools.module
/**
* Implements hook_theme_registry_alter().
*/
function htools_theme_registry_alter(&$theme_registry) {
if (!empty($theme_registry['views_view__layout_builder__efr'])) {
$theme_registry['views_view__layout_builder__efr']['variables']['exposed_region_0'] = [];
$theme_registry['views_view__layout_builder__efr']['variables']['exposed_region_1'] = [];
$theme_registry['views_view__layout_builder__efr']['variables']['exposed_region_2'] = [];
$theme_registry['views_view__layout_builder__efr']['variables']['exposed_region_3'] = [];
$theme_registry['views_view__layout_builder__efr']['variables']['view'] = []; 29.04.2020
image_lazy_loader 8.x-1.2 ::
image_lazy_loader.module
/**
* Implements hook_theme_registry_alter().
*
* Swap out for an updated template.
*/
function image_lazy_loader_theme_registry_alter(&$theme_registry) {
$theme_registry['responsive_image']['path'] = \Drupal::service('extension.list.module')->getPath('image_lazy_loader') . '/templates';
} 15.11.2019
image_link_attributes 8.x-1.4 ::
image_link_attributes.module
/**
* Implements hook_theme_registry_alter().
*/
function image_link_attributes_theme_registry_alter(array &$theme_registry) {
$module_path = \Drupal::service('extension.list.module')->getPath('image_link_attributes');
$theme_registry['image_formatter']['path'] = $module_path . '/templates/field';
$theme_registry['responsive_image_formatter']['path'] = $module_path . '/templates/field';
}
/** 15.10.2020
improvements 2.x-dev ::
modules/improvements_toolbar/improvements_toolbar.module
/**
* Implements hook_theme_registry_alter().
*/
function improvements_toolbar_theme_registry_alter(array &$theme_registry): void {
$theme_registry['html']['preprocess functions'] = array_diff($theme_registry['html']['preprocess functions'], ['toolbar_preprocess_html']);
}
/**
* Preprocess function for html.html.twig.
*/ 12.02.2021
isi 8.x-1.1-beta1 ::
isi.module
/**
* Implements hook_theme_registry_alter().
*/
function isi_theme_registry_alter(&$theme_registry) {
$module_handler = \Drupal::service('module_handler');
$module_path = $module_handler->getModule('isi')->getPath();
if (isset($theme_registry['paragraph__isi_section'])) {
if ($theme_registry['paragraph__isi_section']['template'] != 'paragraph--isi-section') {
$theme_registry['paragraph__isi_section']['path'] = $module_path . '/templates'; 26.10.2022
javali_error_pages 1.0.5 ::
javali_error_pages.module
/**
* Implements hook_theme_registry_alter().
*/
function javali_error_pages_theme_registry_alter(&$theme_registry) {
$theme_registry['maintenance_page']['path'] = \Drupal::service('extension.list.module')->getPath('javali_error_pages') . '/templates';
}
/**
* Gets the page logo.
*/ 