Results
16.10.2020
acquia_search_solr 8.x-1.0-beta9 ::
acquia_search_solr.module
/** * Implements hook_theme_registry_alter(). * * Helps us alter some Search API status pages. */ function acquia_search_solr_theme_registry_alter(&$theme_registry) { $module_handler = \Drupal::moduleHandler(); $module_path = $module_handler->getModule('acquia_search_solr')->getPath(); $theme_registry['search_api_index']['variables']['acquia_search_info_box'] = NULL; $theme_registry['search_api_index']['path'] = $module_path . '/templates';
14.03.2018
adaptivetheme 8.x-3.x-dev ::
at_core/includes/preprocess.inc
/** * Preprocess variables for AT Layout Plugin templates. * This function is added in at_core_theme_registry_alter(). * * @param $variables */ function at_core_preprocess_at_layout(&$variables) { $attributes = _at_core_layout_plugin_attributes($variables); if (isset($attributes['role'])) {
14.03.2018
adaptivetheme 8.x-3.x-dev ::
at_core/includes/alters.inc
/** * Implements hook_theme_registry_alter(). * * @param $theme_registry */ function at_core_theme_registry_alter(&$theme_registry) { $theme_hooks = LayoutDiscoveryPlugin::getThemeHooks(); // Only add preprocess functions if entity exposes theme function, and this // layout is provided by at_core. if (!empty($theme_hooks)) { foreach ($theme_registry as $theme_hook => $info) {
20.01.2023
admin_local_tasks 1.0.0-rc1 ::
admin_local_tasks.module
/** * Implements hook_theme_registry_alter(). * * Template overrides for local tasks. */ function admin_local_tasks_theme_registry_alter(&$theme_registry) { /** @var \Drupal\Core\Extension\ModuleExtensionList $extension */ $extension = \Drupal::service('extension.list.module'); $path = $extension->getPath('admin_local_tasks'); if (isset($theme_registry['menu_local_tasks'])) { $theme_registry['menu_local_tasks']['path'] = $path . '/templates/navigation';
26.11.2021
alter_blocks_element_markup 1.0.0 ::
alter_blocks_element_markup.module
/** * Implements hook_theme_registry_alter(). */ function alter_blocks_element_markup_theme_registry_alter(array &$theme_registry) { $path = \Drupal::service('extension.list.module')->getPath('alter_blocks_element_markup'); $theme_registry['block']['path'] = $path . '/templates'; \Drupal::logger('AlterBlocksElementMarkup')->notice(print_r($theme_registry['block'], true)); } /**
30.09.2020
amp 8.x-3.5 ::
amp.module
/** * Implements hook_theme_registry_alter(). * * We still want the image_theme to process the image, just output it * in a different template, and only when it used in an AMP component. * A theme could do this with just theme_suggestions_alter(), but if a module * provides an alternate template it won't be discovered automatically by the * theme system. Using theme_register_alter() we can force the theme system to
* actually use directly, then it will be available for the suggestion. */ function amp_theme_registry_alter(&$theme_registry) { $theme_registry['amp_image_wrapper'] = $theme_registry['image']; $theme_registry['amp_image_wrapper']['template'] = 'amp-image-wrapper'; $theme_registry['amp_image_wrapper']['path'] = \Drupal::service('extension.list.module')->getPath('amp') . '/templates'; } /**
10.03.2021
append_file_info 8.x-1.0-rc3 ::
append_file_info.module
/** * Implements hook_theme_registry_alter(). */ function append_file_info_theme_registry_alter(&$theme_registry) { foreach ($theme_registry['file_link']['preprocess functions'] as $key => $value) { if ($value == 'template_preprocess_file_link') { $theme_registry['file_link']['preprocess functions'][$key] = '_append_file_info_preprocess_file_link'; } } }
13.10.2020
at_theme 1.4.1 ::
at_core/includes/preprocess.inc
/** * Preprocess variables for AT Layout Plugin templates. * This function is added in at_core_theme_registry_alter(). * * @param $variables */ function at_core_preprocess_at_layout(&$variables) { $attributes = _at_core_layout_plugin_attributes($variables); if (isset($attributes['role'])) {
13.10.2020
at_theme 1.4.1 ::
at_core/includes/alters.inc
/** * Implements hook_theme_registry_alter(). * * @param $theme_registry */ function at_core_theme_registry_alter(&$theme_registry) { $theme_hooks = LayoutDiscoveryPlugin::getThemeHooks(); // Only add preprocess functions if entity exposes theme function, and this // layout is provided by at_core. if (!empty($theme_hooks)) { foreach ($theme_registry as $theme_hook => $info) {
12.10.2020
audiofield 8.x-1.x-dev ::
audiofield.module
/** * Implements hook_theme_registry_alter(). */ function audiofield_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('audiofield'); $audioplayer_templates = drupal_find_theme_templates($theme_registry, '.html.twig', $path);
26.06.2020
bee 8.x-1.1 ::
bee.module
/** * Implements hook_theme_registry_alter(). */ function bee_theme_registry_alter(&$theme_registry) { $theme_registry['field__node__field_availability_hourly'] = [ 'template' => 'field-availability-hourly', 'path' => \Drupal::service('extension.list.module')->getPath('bee') . '/templates', 'render element' => 'element', 'base hook' => 'field', 'type' => 'module',
04.07.2020
betterlt 8.x-1.x-dev ::
better_local_tasks.module
/** * Implements hook_theme_registry_alter(). * * Template overrides for local tasks. */ function better_local_tasks_theme_registry_alter(&$theme_registry) { $admin_context = \Drupal::service('router.admin_context'); if (!$admin_context->isAdminRoute()) { if (!isset($theme_registry['block__local_tasks_block'])) { $theme_registry['block__local_tasks_block'] = $theme_registry['block']; $theme_registry['block__local_tasks_block']['template'] = 'block--local-tasks-block';
22.11.2021
bideo 2.0.1 ::
bideo.module
/** * Implements hook_theme_registry_alter(). */ function bideo_theme_registry_alter(&$theme_registry) { $theme_registry['progress_bar']['preprocess'][] = 'bideo_preprocess_progress_bar'; $theme_registry['progress_bar']['path'] = \Drupal::moduleHandler()->getModule('bideo')->getPath() . '/templates/'; $theme_registry['progress_bar']['template'] = 'progress-bar'; } /**
27.09.2020
block_form_alter 8.x-1.x-dev ::
tests/modules/block_form_alter_test/block_form_alter_test.module
/** * Implements hook_theme_registry_alter(). */ function block_form_alter_test_theme_registry_alter(&$theme_registry) { $theme_registry['block']['path'] = \Drupal::service('extension.list.module')->getPath('block_form_alter_test') . '/templates/block'; }
18.03.2020
block_generation 8.x-1.x-dev ::
block_generation.module
/** * Alter the theme registry to add templates for existing bundles of custom blocks. * Implements hook_theme_registry_alter(). * * @param $theme_registry * * @see \Drupal\Core\Theme\Registry::processExtension() * @see hook_theme() */
* @see hook_theme() */ function block_generation_theme_registry_alter(&$theme_registry) { $block_generation_theme_registry = &drupal_static(__FUNCTION__, []); if (!$block_generation_theme_registry) { $cid = 'block_generation:theme_registry'; $block_generation_theme_registry = [];
14.06.2020
bootstrap 8.x-3.23 ::
src/Bootstrap.php
* * @see \Drupal\bootstrap\Plugin\Alter\ThemeRegistry::alter() * @see bootstrap_theme_registry_alter() * @see bootstrap_theme() * @see hook_theme() */ public static function getThemeHooks() { $hooks['bootstrap_carousel'] = [ 'variables' => [
03.10.2024
bootstrap3 1.0.1 ::
src/Bootstrap.php
* * @see \Drupal\bootstrap3\Plugin\Alter\ThemeRegistry::alter() * @see bootstrap_theme_registry_alter() * @see bootstrap_theme() * @see hook_theme() */ public static function getThemeHooks() { $hooks['bootstrap_carousel'] = [ 'variables' => [
05.06.2020
bootstrap_layouts 8.x-5.2 ::
bootstrap_layouts.module
/** * Implements hook_theme_registry_alter(). */ function bootstrap_layouts_theme_registry_alter(&$theme_registry) { // Immediately return if the layout manager cannot be loaded. // This can happen during the update process. if (!\Drupal::hasService('plugin.manager.core.layout')) { return; }
28.05.2020
bricks 2.x-dev ::
modules/bricks_inline/bricks_inline.module
/** * Implements hook_theme_registry_alter(). */ function bricks_inline_theme_registry_alter(&$theme_registry) { $theme_registry['inline_entity_form_entity_table']['theme path'] = \Drupal::service('extension.list.module')->getPath('bricks_inline'); $theme_registry['inline_entity_form_entity_table']['function'] = 'bricks_inline_inline_entity_form_entity_table'; } /** * Implements hook_inline_entity_form_reference_form_alter().
/** * Overrides theme_inline_entity_form_entity_table() * with a help from hook_theme_registry_alter(). */ function bricks_inline_inline_entity_form_entity_table($variables) { if (!empty($variables['table'])) { return \Drupal::service('renderer')->render($variables['table']); } }
19.03.2022
checkboxes_filter 1.0.0 ::
checkboxes_filter.module
/** * Implements hook_theme_registry_alter(). */ function checkboxes_filter_theme_registry_alter(array &$theme_registry) { $theme_registry['checkboxes']['preprocess functions'][] = 'checkboxes_filter_preprocess_checkboxes'; } /** * Preprocess for the theme_checkboxes theming. */