Results

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',
30.04.2024
ept_video_and_image_gallery 1.4.3 :: ept_video_and_image_gallery.module
/**
 * Implements hook_theme_registry_alter().
 */
function ept_video_and_image_gallery_theme_registry_alter(&$theme_registry) {
  $ept_module = 'ept_video_and_image_gallery';
  $module_path = \Drupal::service('extension.list.module')->getPath($ept_module);
  $ept_module_with_dashes = str_replace('_', '-', $ept_module);

  $base_theme = 'field';
  $theme_registry['field__paragraph__field_ept_videos_and_images__' . $ept_module] = [
30.09.2020
ercore 8.x-1.20 :: ercore.module
/**
 * Implements hook_theme_registry_alter().
 */
function ercore_theme_registry_alter(&$theme_registry) {
  $modulepath = drupal_get_path('module', 'ercore');
  // Find all .tpl.php files in this module's folder recursively.
  $template_file_objects = drupal_find_theme_templates($theme_registry, '.html.twig', $modulepath);
  // Iterate through all found template file objects.
  foreach ($template_file_objects as $key => $template_file_object) {
    $exploded_type = explode('--', $template_file_object['template']);
25.08.2020
eu_cookie_compliance_rocketship 1.0.x-dev :: eu_cookie_compliance_rocketship.module
/**
 * Implements hook_theme_registry_alter().
 */
function eu_cookie_compliance_rocketship_theme_registry_alter(&$theme_registry) {
  $module_path = \Drupal::service('extension.list.module')->getPath('eu_cookie_compliance_rocketship');
  $theme_registry['eu_cookie_compliance_popup_info']['path'] = $module_path . '/templates';
  $theme_registry['eu_cookie_compliance_popup_info']['theme path'] = $module_path;
  $theme_registry['eu_cookie_compliance_popup_info']['variables']['lang_switcher'] = NULL;
  $theme_registry['eu_cookie_compliance_popup_info']['variables']['accept_minimal'] = NULL;
  $theme_registry['eu_cookie_compliance_popup_info']['variables']['dynamic_accept'] = NULL;
03.03.2019
extra_pagination 8.x-1.0 :: extra_pagination.module
/**
 * Implements hook_theme_registry_alter
 */
function extra_pagination_theme_registry_alter(&$theme_registry) {
  $module_path = \Drupal::service('extension.list.module')->getPath('extra_pagination');
  $theme_registry['pager']['path'] = $module_path . '/templates';
}

/**
 * Implements template_preprocess_pager().
25.08.2020
fdk 8.x-1.0 :: fdk.module
/**
 * Implements hook_theme_registry_alter().
 */
function fdk_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;
  }
  $module_path = \Drupal::service('extension.list.module')->getPath('fdk');
26.05.2020
fences 8.x-2.0-rc1 :: fences.module
/**
 * Implements hook_theme_registry_alter().
 */
function fences_theme_registry_alter(&$theme_registry) {
  // Get the configuration.
  $config = \Drupal::config('fences.settings');

  // Allow to override the field template only if it came from core or
  // allow to override the field template for all themes.
  if (!empty($config->get('fences_field_template_override_all_themes')) || (strpos($theme_registry['field']['path'], 'core') === 0)) {

Pages

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

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