Results

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' => [
26.09.2025
bootstrap_five_layouts 1.0.x-dev :: bootstrap_five_layouts.module
/**
 * Implements hook_theme_registry_alter().
 */
function bootstrap_five_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;
  }
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.
 */
28.08.2020
civicrm_entity 8.x-3.0-beta1 :: civicrm_entity.module
/**
 * Implements hook_theme_registry_alter().
 */
function civicrm_entity_theme_registry_alter(&$theme_registry) {
  $theme_registry['civicrm_entity']['preprocess functions'][] = 'field_group_build_entity_groups';
}

/**
 * Implements hook_rebuild().
 *
20.08.2022
claro_media_library_theme 1.0.0-alpha4 :: claro_media_library_theme.module
/**
 * Implements hook_theme_registry_alter().
 *
 * Add the Claro Media Library templates with their default Claro settings if they not yet exist in to
 * the active theme registry.
 */
function claro_media_library_theme_theme_registry_alter(&$theme_registry) {
  /** @var \Drupal\Core\Extension\ThemeHandler $themeHandler */
  $themeHandler = \Drupal::service('theme_handler');
  $claroThemePath = $themeHandler->getTheme('claro')->getPath();

  if (!in_array('media', $theme_registry)) {
    $template = 'media';
27.09.2018
clean_maintenance 8.x-1.3 :: clean_maintenance.module
/**
 * Implements hook_theme_registry_alter().
 */
function clean_maintenance_theme_registry_alter(&$theme_registry) {

  // Override the default maintenance template with our own.
  if (isset($theme_registry['maintenance_page'])) {

    // Get the current route.
    $current_route = \Drupal::routeMatch()->getRouteName();
22.12.2019
cloudflare_image_style 8.x-1.x-dev :: cloudflare_image_style.module
/**
 * Implements hook_theme_registry_alter().
 */
function cloudflare_image_style_theme_registry_alter(&$theme_registry) {
  $theme_registry['image_style']['preprocess functions'][] = 'cloudflare_image_style_preprocess_image_style';
}

/**
 * Implements template_preprocess_theme().
 */
25.04.2020
cloudinary 8.x-1.x-dev :: cloudinary.module
/**
 * Implements hook_theme_registry_alter().
 */
function cloudinary_theme_registry_alter(&$theme_registry) {
  foreach ($theme_registry['image_style_preview']['preprocess functions'] as &$function) {
    if ($function == 'template_preprocess_image_style_preview') {
      $function = 'cloudinary_preprocess_image_style_preview';
      break;
    }
  }
08.09.2022
commerce_checkout_accordion 1.0.x-dev :: commerce_checkout_accordion.module
/**
 * Implements hook_theme_registry_alter().
 *
 * Override the details.html.twig template.
 */
function commerce_checkout_accordion_theme_registry_alter(&$theme_registry) {
  $theme_registry['details']['path'] = \Drupal::service('extension.list.module')->getPath('commerce_checkout_accordion') . '/templates';
}

/**
 * Implements hook_preprocess_HOOK().
 */
18.04.2019
commerce_loyalty_points 8.x-1.x-dev :: commerce_loyalty_points.module
/**
 * Implements hook_theme_registry_alter().
 */
function commerce_loyalty_points_theme_registry_alter(&$theme_registry) {
  $theme_registry['views_view__loyalty_points_offered__user_view']['template'] = 'views-view--loyalty-points-offered--user-view';
  $theme_registry['views_view__loyalty_points_offered__user_view']['path'] = drupal_get_path('module', 'commerce_loyalty_points') . '/templates';
}

/**
 * Implements template_preprocess_views_view__loyalty_points_offered__user_view().
11.07.2020
commerce_product_bundles 8.x-1.0 :: commerce_product_bundles.module
/**
 * Implements hook_theme_registry_alter().
 *
 * @see commerce_product_theme_registry_alter()
 */
function commerce_product_bundles_theme_registry_alter(&$theme_registry) {
  $theme_registry['field']['preprocess functions'][] = 'commerce_product_bundles_remove_quickedit';
}

/**
 * Turn off Quick Edit for injected bundle variation fields, to avoid warnings.
 *
03.02.2019
commerce_simplestock 8.x-1.x-dev :: commerce_simplestock.module
/**
 * Implements hook_theme_registry_alter().
 */
function commerce_simplestock_theme_registry_alter(&$theme_registry) {
  $theme_registry['commerce_order__user']['path'] =
    \Drupal::service('extension.list.module')->getPath('commerce_simplestock') . '/templates';
}
14.05.2024
component_connector 1.1.0 :: component_connector.module
/**
 * Implements hook_theme_registry_alter().
 */
function component_connector_theme_registry_alter(&$theme_registry) {
  // Process components.
  \Drupal::service('component_connector.manager')
    ->alterRegistry($theme_registry);
}

/**

Pages

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc