Results
11.10.2020
display_field_copy 2.x-dev ::
display_field_copy.module
/** * Implements hook_theme_registry_alter(). * * Shift the preprocess to the top to make it easier to move items. */ function display_field_copy_theme_registry_alter(&$theme_registry) { array_unshift($theme_registry['field']['preprocess functions'], 'display_field_copy_field'); foreach ($theme_registry as $hook => $theme) { if (isset($theme['base hook']) && $theme['base hook'] == 'field') { array_unshift($theme_registry[$hook]['preprocess functions'], 'display_field_copy_field'); }
31.08.2020
ds 8.x-3.9 ::
ds.module
/** * Implements hook_theme_registry_alter(). */ function ds_theme_registry_alter(&$theme_registry) { $layouts = Ds::getLayouts(); $layout_theme_hooks = []; /** @var \Drupal\Core\Layout\LayoutDefinition $info */ foreach ($layouts as $info) { if (is_a($info->getClass(), DsLayout::class, TRUE)) { $layout_theme_hooks[$info->getThemeHook()] = 'layout';
* Process layout. * * This function is added in ds_theme_registry_alter(). */ function ds_preprocess_ds_layout(&$variables) { $layout_settings = $variables['settings']; $layout_settings += ['wrappers' => []]; // Fetch the entity type.
26.06.2024
dsfr_paragraph 2.1.x-dev ::
dsfr_paragraph.module
/** * Implements hook_theme_registry_alter(). */ function dsfr_paragraph_theme_registry_alter( &$theme_registry ) { $dp_path = \Drupal::service('extension.path.resolver')->getPath('module', 'dsfr_paragraph'); // Override TEMPLATES // ----------------------------------------------------------------------------------------------- // # layout_paragraphs
04.04.2019
dynamic_menu 8.x-0.x-dev ::
dynamic_menu.module
/** * Implements hook_theme_registry_alter(). */ function dynamic_menu_theme_registry_alter(&$theme_registry) { // Add $menu_block_configuration as a variable to the 'menu' theme hook. Set // its default value to be an empty array. $theme_registry['menu']['variables']['dynamic_menu_configuration'] = []; } /**
26.03.2021
easy_social 8.x-3.x-dev ::
easy_social.module
/** * Implements hook_theme_registry_alter(). * * Adds our custom preprocess to all widget's theme functions. * * @see _easy_social_preprocess_widget() */ function easy_social_theme_registry_alter(&$theme_registry) { foreach ($theme_registry as $key => $value) { if (strpos($key, 'easy_social_') === 0) { if (!empty($theme_registry[$key]['preprocess functions'])) { array_unshift($theme_registry[$key]['preprocess functions'], '_easy_social_preprocess_widget'); } }
* Custom pre-process function, used to add settings for widgets. * * @see easy_social_theme_registry_alter() */ function _easy_social_preprocess_widget(&$variables, $hook) { global $base_url; $widget = str_replace("easy_social_", "", $hook);
10.01.2021
ebt_core 1.0.0-alpha3 ::
ebt_core.module
/** * Implements hook_theme_registry_alter(). */ function ebt_core_theme_registry_alter(&$theme_registry) { $module_list = \Drupal::service('extension.list.module')->getList(); $ebt_modules = []; foreach ($module_list as $module_name => $extention) { if ($module_name == 'ebt_core') { continue; }
30.04.2024
ebt_tiles 1.4.1 ::
ebt_tiles.module
/** * Implements hook_theme_registry_alter(). */ function ebt_tiles_theme_registry_alter(&$theme_registry) { $ebt_module = 'ebt_tiles'; $module_path = \Drupal::service('extension.list.module')->getPath($ebt_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ebt_tiles_item__default'] = [ 'path' => $module_path . '/templates', 'template' => 'paragraph--ebt-tiles-item--default',
07.04.2022
entity_embed_link 2.0.0 ::
entity_embed_link.module
/** * Implements hook_theme_registry_alter(). */ function entity_embed_link_theme_registry_alter(&$theme_registry) { $theme_registry['entity_embed_container']['path'] = \Drupal::service('extension.list.module')->getPath('entity_embed_link') . '/templates'; } /** * Implements hook_preprocess_HOOK(). */
24.12.2019
entity_generic 8.x-3.x-dev ::
entity_generic.module
/** * Alter the theme registry to add templates for existing generic entities. * Implements hook_theme_registry_alter(). * * @see hook_theme() * @see \Drupal\Core\Theme\Registry::processExtension() */ function entity_generic_theme_registry_alter(&$theme_registry) { $app_root = \Drupal::getContainer()->getParameter('app.root'); foreach (entity_generic_types() as $type => $definition) { $file_path = $app_root . '/' . \Drupal::service('extension.list.module')->getPath($definition->getProvider()) . '/templates/entity-generic--' . strtr($type, '_', '-') . '.html.twig'; if (file_exists($file_path)) { $theme_registry['entity_generic__' . $type] = [ 'path' => \Drupal::service('extension.list.module')->getPath($definition->getProvider()) . '/templates',
15.04.2024
entity_reference_edit_link 1.1.2 ::
entity_reference_edit_link.module
/** * Implements hook_theme_registry_alter(). */ function entity_reference_edit_link_theme_registry_alter(&$theme_registry) { // To run module hook function before Gin theme functions. foreach ($theme_registry['page_title']['preprocess functions'] as $key => $value) { if ($value == 'entity_reference_edit_link_preprocess_page_title') { unset($theme_registry['page_title']['preprocess functions'][$key]); $theme_registry['page_title']['preprocess functions'][] = $value; }
19.06.2024
ept_accordion 1.4.2 ::
ept_accordion.module
/** * Implements hook_theme_registry_alter(). */ function ept_accordion_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_accordion'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $ept_module_with_dashes = str_replace('_', '-', $ept_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ept_accordion_section__default'] = [ 'path' => $module_path . '/templates',
30.04.2024
ept_carousel 1.4.2 ::
ept_carousel.module
/** * Implements hook_theme_registry_alter(). */ function ept_carousel_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_carousel'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $ept_module_with_dashes = str_replace('_', '-', $ept_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ept_carousel_item__default'] = [ 'path' => $module_path . '/templates',
20.06.2024
ept_counter 1.4.x-dev ::
ept_counter.module
/** * Implements hook_theme_registry_alter(). */ function ept_counter_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_counter'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ept_counter_item__default'] = [ 'path' => $module_path . '/templates', 'template' => 'paragraph--ept-counter-item--default',
17.03.2024
ept_image 1.4.x-dev ::
ept_image.module
/** * Implements hook_theme_registry_alter(). */ function ept_image_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_image'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $base_theme = 'field'; $theme_registry['field__paragraph__ept_image__field_ept_image'] = [ 'path' => $module_path . '/templates',
24.04.2024
ept_image_gallery 1.4.2 ::
ept_image_gallery.module
/** * Implements hook_theme_registry_alter(). */ function ept_image_gallery_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_image_gallery'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $base_theme = 'field'; $theme_registry['field__paragraph__ept_image_gallery__field_ept_image_gallery'] = [ 'path' => $module_path . '/templates',
30.04.2024
ept_slick_slider 1.4.1 ::
ept_slick_slider.module
/** * Implements hook_theme_registry_alter(). */ function ept_slick_slider_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_slick_slider'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $ept_module_with_dashes = str_replace('_', '-', $ept_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ept_slick_slider_item__default'] = [ 'path' => $module_path . '/templates',
30.04.2024
ept_slideshow 1.4.2 ::
ept_slideshow.module
/** * Implements hook_theme_registry_alter(). */ function ept_slideshow_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_slideshow'; $module_path = \Drupal::service('extension.list.module') ->getPath($ept_module); $ept_module_with_dashes = str_replace('_', '-', $ept_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ept_slideshow_item__default'] = [
30.04.2024
ept_stats 1.4.1 ::
ept_stats.module
/** * Implements hook_theme_registry_alter(). */ function ept_stats_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_stats'; $module_path = \Drupal::service('extension.list.module') ->getPath($ept_module); $ept_module_with_dashes = str_replace('_', '-', $ept_module); $base_theme = 'field';
30.04.2024
ept_tiles 1.4.3 ::
ept_tiles.module
/** * Implements hook_theme_registry_alter(). */ function ept_tiles_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_tiles'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $ept_module_with_dashes = str_replace('_', '-', $ept_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ept_tiles_item__default'] = [ 'path' => $module_path . '/templates',
30.04.2024
ept_timeline 1.4.2 ::
ept_timeline.module
/** * Implements hook_theme_registry_alter(). */ function ept_timeline_theme_registry_alter(&$theme_registry) { $ept_module = 'ept_timeline'; $module_path = \Drupal::service('extension.list.module')->getPath($ept_module); $ept_module_with_dashes = str_replace('_', '-', $ept_module); $base_theme = 'paragraph'; $theme_registry['paragraph__ept_timeline_item__default'] = [ 'path' => $module_path . '/templates',