Results
17.06.2020
revealjs 8.x-1.0-alpha2 ::
revealjs.module
/** * Implements hook_theme_registry_alter(). * * {@inheritDoc} */ function revealjs_theme_registry_alter(& $theme_registry ) { $path = drupal_get_path( 'module' , 'revealjs' ); // Duplicate the registry entry for the views_view template. $theme_registry [ 'revealjs' ] = $theme_registry [ 'views_view' ]; // Update the entry to indicate that the template is in the module directory, not the theme directory. $theme_registry [ 'revealjs' ][ 'template' ] = 'views-view-revealjs' ; $theme_registry [ 'revealjs' ][ 'path' ] = $path . '/templates' ; |
23.06.2020
rocketship_core 8.x-2.0-alpha11 ::
rocketship_core.module
/** * Implements hook_theme_registry_alter(). */ function rocketship_core_theme_registry_alter(& $theme_registry ) { $layouts = \Drupal::service( 'plugin.manager.core.layout' )->getDefinitions(); $layout_theme_hooks = []; /** @var \Drupal\Core\Layout\LayoutDefinition $info */ foreach ( $layouts as $info ) { if ( $info ->getCategory() == 'Rocketship Layouts - Display Suite' ) { |
07.10.2018
scmsg 8.x-1.1 ::
simple_cool_message.module
/** * Implements hook_theme_registry_alter(). */ function simple_cool_message_theme_registry_alter(& $theme_registry ) { $coolmessage_enable = \Drupal::config( 'simple_cool_message.simple_cool_message' )->get( 'simple_coolmessage_enable' ); if ( $coolmessage_enable ){ $theme_registry [ 'status_messages' ][ 'function' ] = 'simple_cool_message_status_messages' ; } } |
21.02.2018
simplelogin 8.x-1.0 ::
simplelogin.module
/** * Implements hook_theme_registry_alter(). */ function simplelogin_theme_registry_alter(& $theme_registry ) { $module_path = drupal_get_path( 'module' , 'simplelogin' ); $theme_registry [ 'page__simplelogin' ] = array ( 'template' => $module_path . '/templates/page--simplelogin' , 'type' => 'theme_engine' , 'theme path' => $module_path . '/templates' , 'render element' => 'page' , |
16.03.2019
uswds_base 8.x-2.0-alpha1 ::
includes/base_themes.inc
/** * Implements hook_theme_registry_alter(). */ function uswds_base_theme_registry_alter(& $registry ) { $trail = uswds_base_theme_trail(); // For the purpose of this, we want the theme trail in reverse order: from // root base theme to active theme. This way we can let base themes run their // functions before the active theme. $trail = array_reverse ( $trail ); |
16.05.2022
wetboew_webform_example 1.0.x-dev ::
wetboew_webform_example.module
/** * Implements hook_theme_registry_alter(). */ function wetboew_webform_example_theme_registry_alter(& $theme_registry ) { if (isset( $theme_registry [ 'form_element_label__wetboew' ][ 'path' ])) { if ( stripos ( $theme_registry [ 'form_element_label__wetboew' ][ 'path' ], 'label' ) <= 0) { // Tell the theming system to look in this modules templates/label folder for the twig file. $theme_registry [ 'form_element_label__wetboew' ][ 'path' ] = $theme_registry [ 'form_element_label__wetboew' ][ 'path' ] . '/label' ; } } |
13.10.2020
contacts_events 8.x-1.x-dev ::
modules/printing/contacts_events_printing.module
/** * Implements hook_theme_registry_alter(). * * Add ticket printing specific page template alter suggestion. */ function contacts_events_printing_theme_registry_alter(& $theme_registry ) { $theme_registry [ 'page__booking__ticket__render' ] = [ 'template' => 'page--booking--ticket--render' , 'path' => drupal_get_path( 'module' , 'contacts_events_printing' ) . '/templates' , 'base hook' => 'page' , ]; } |
08.02.2024
advanced_maintenance_page 1.0.0 ::
advanced_maintenance_page.module
/** * Implements hook_theme_registry_alter(). */ function advanced_maintenance_page_theme_registry_alter(& $theme_registry ) { $config = \Drupal::config( 'system.maintenance' ); if ( $config ->get( 'enable_advanced_options' )) { $theme_registry [ 'maintenance_page' ][ 'path' ] = \Drupal::service( 'extension.list.module' )->getPath( 'advanced_maintenance_page' ) . '/templates' ; } } |
24.11.2023
contacts_subscriptions 1.x-dev ::
contacts_subscriptions.module
/** * Implements hook_theme_registry_alter(). */ function contacts_subscriptions_theme_registry_alter(& $theme_registry ) { // Ensure our preprocess runs after any others. if (isset( $theme_registry [ 'input' ][ 'preprocess functions' ])) { $preprocesses = $theme_registry [ 'input' ][ 'preprocess functions' ]; if ( $key = array_search ( 'contacts_subscriptions_preprocess_input' , $preprocesses )) { |
25.02.2024
ept_core 1.4.2 ::
ept_core.module
/** * Implements hook_theme_registry_alter(). */ function ept_core_theme_registry_alter(& $theme_registry ) { $module_list = \Drupal::service( 'extension.list.module' )->getList(); $ept_modules = []; foreach ( $module_list as $module_name => $extention ) { if ( $module_name == 'ept_core' ) { continue ; } |
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' ; } |
26.02.2024
message_notification 1.0.1-beta1 ::
message_notification.module
/** * Implements hook_theme_registry_alter(). */ function message_notification_theme_registry_alter( array & $theme_registry ) { if (isset( $theme_registry [ 'message__notification' ])) { $theme_registry [ 'message__notification' ][ 'path' ] = \Drupal::service( 'module_handler' )->getModule( 'message_notification' )->getPath() . '/templates' ; $theme_registry [ 'message__notification' ][ 'template' ] = 'message--notification' ; } } |
28.03.2024
module_instructions 2.0.x-dev ::
module_instructions.module
/** * Implements hook_theme_registry_alter(). */ function module_instructions_theme_registry_alter(& $theme_registry ) { if (! empty ( $theme_registry [ 'system_modules_details' ]) && \Drupal::currentUser()->hasPermission( 'access module instruction files' ) ) { $path = \Drupal::service( 'extension.path.resolver' )->getPath( 'module' , 'module_instructions' ) . '/templates' ; $theme_registry [ 'system_modules_details' ][ 'path' ] = $path ; } |
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 ; } |