ept_slick_slider-1.4.1/ept_slick_slider.module
ept_slick_slider.module
<?php /** * @file * Add templates for EPT Slick Slider. */ /** * 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', 'template' => 'paragraph--ept-slick-slider-item--default', 'render element' => $theme_registry[$base_theme]['render element'], 'base hook' => $base_theme, 'type' => 'module', 'theme path' => $module_path, 'preprocess functions' => $theme_registry[$base_theme]['preprocess functions'], ]; $base_theme = 'field'; $theme_registry['field__paragraph__field_' . $ept_module . '__' . $ept_module] = [ 'path' => $module_path . '/templates', 'template' => 'field--paragraph--field-' . $ept_module_with_dashes . '--' . $ept_module_with_dashes, 'render element' => $theme_registry[$base_theme]['render element'], 'base hook' => $base_theme, 'type' => 'module', 'theme path' => $module_path, 'preprocess functions' => $theme_registry[$base_theme]['preprocess functions'], ]; }