Skip to content
Snippets Groups Projects

Automated Project Update Bot fixes

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -42,7 +42,7 @@
* jquery_version :float: Minimum jQuery version required for this style.
*/
function hook_responsive_menus_style_info() {
$path = drupal_get_path('module', 'responsive_menus');
$path = \Drupal::service('extension.list.module')->getPath('responsive_menus');
$styles = [
'example_style' => [
'name' => t('Example Responsive Menus style'),
@@ -164,7 +164,7 @@ function hook_responsive_menus_styles_alter(array &$styles) {
// Example showing all of the currently available fields.
// Note, js_folder & css_folder are excluded until an alternative to glob() is
// built into RM.
$path = drupal_get_path('module', 'my_style_module') . '/styles';
$path = \Drupal::service('extension.list.module')->getPath('my_style_module') . '/styles';
$styles['my_style'] = [
'name' => t('My Style'),
'form' => 'responsive_menus_my_style_settings',
@@ -185,7 +185,7 @@ function hook_responsive_menus_styles_alter(array &$styles) {
// In this next example, I will override the Sidr
// style to bypass the Libraries
// module and provide my own files in my_module/responsive_menus_alter/sidr/.
$path = drupal_get_path('module', 'my_module') . '/responsive_menus_alter';
$path = \Drupal::service('extension.list.module')->getPath('my_module') . '/responsive_menus_alter';
$styles['sidr'] = [
'use_libraries' => FALSE,
'js_files' => [$path . '/sidr/my_sidr.js'],
Loading