I have also face this same issue after cloned Coffee Zymphonies Theme like undefined function drupal_get_path().
Error: Call to undefined function drupal_get_path() in coffee_zymphonies_theme_get_slider_content() (line 176 of themes/contrib/coffee_zymphonies_theme/coffee_zymphonies_theme.theme).
Please open the coffee_zymphonies_theme.theme file in the path of (themes/contrib/coffee_zymphonies_theme/city_zymphonies_theme.theme ).
so please add the drupal_get_path() after end of this coffee_zymphonies_theme_get_slider_content function.
function drupal_get_path($type, $name) {
/**
drupal_get_path('module', 'node') \Drupal::service('extension.list.module')->getPath('node')
drupal_get_path('theme', 'seven') \Drupal::service('extension.list.theme')->getPath('seven')
drupal_get_path('profile', 'standard') \Drupal::service('extension.list.profile')->getPath('standard')
*/
switch ($type) {
case 'module':
return \Drupal::service('extension.list.module')->getPath($name);
break;
case 'theme':
return \Drupal::service('extension.list.theme')->getPath($name);
break;
case 'profile':
return \Drupal::service('extension.list.profile')->getPath($name);
break;
return false;
}
}
Its working fine for me,
I have face some issues like this drupal_get_path().
Error: Call to undefined function drupal_get_path() in city_zymphonies_theme_get_slider_content() (line 126 of themes/contrib/city_zymphonies_theme/city_zymphonies_theme.theme).
After install city_zymphonies_theme & i have solution to fix this issue.
Please open the city_zymphonies_theme.theme file in the path of ( themes/contrib/city_zymphonies_theme/city_zymphonies_theme.theme )
In the line 126 they have mention the drupal_get_path function theme of city_zymphonies_theme. so please add the drupal_get_path() after end of this city_zymphonies_theme_get_slider_content function.
Here is this drupal_get_path() :
function drupal_get_path($type, $name) {
/**
drupal_get_path('module', 'node') \Drupal::service('extension.list.module')->getPath('node')
drupal_get_path('theme', 'seven') \Drupal::service('extension.list.theme')->getPath('seven')
drupal_get_path('profile', 'standard') \Drupal::service('extension.list.profile')->getPath('standard')
*/
switch ($type) {
case 'module':
return \Drupal::service('extension.list.module')->getPath($name);
break;
case 'theme':
return \Drupal::service('extension.list.theme')->getPath($name);
break;
case 'profile':
return \Drupal::service('extension.list.profile')->getPath($name);
break;
return false;
}
}
After add this drupal_get_path() function, drush cr & check.
I have also face the same issue, after install city_zymphonies_theme & i have solution to fix this issue.
Please open the city_zymphonies_theme.theme file in the path of ( themes/contrib/city_zymphonies_theme/city_zymphonies_theme.theme )
In the line 126 they have mention the drupal_get_path function theme of city_zymphonies_theme. so please add the drupal_get_path() after end of this city_zymphonies_theme_get_slider_content function.
Here is this drupal_get_path() :
function drupal_get_path($type, $name) {
/**
drupal_get_path('module', 'node') \Drupal::service('extension.list.module')->getPath('node')
drupal_get_path('theme', 'seven') \Drupal::service('extension.list.theme')->getPath('seven')
drupal_get_path('profile', 'standard') \Drupal::service('extension.list.profile')->getPath('standard')
*/
switch ($type) {
case 'module':
return \Drupal::service('extension.list.module')->getPath($name);
break;
case 'theme':
return \Drupal::service('extension.list.theme')->getPath($name);
break;
case 'profile':
return \Drupal::service('extension.list.profile')->getPath($name);
break;
return false;
}
}
After add this drupal_get_path() function, drush cr & check.
Add the css (margin-bottom) for the div class example: .field-content{ margin-bottom: 25px; }
I have working in my local drupal setup its working fine,after adding a signature element to a form, and testing,the signature image is displayed in Results & also to update the signature element.
Other info(My local setup version details):
Drupal version : 10.1.5
PHP OS : Linux
PHP version : 8.2.5
Drush version : 12.4.1.0
Webform version: ^6.2@RC
I have working in my local drupal setup its working fine,after adding a signature element to a form, and testing,the signature image is displayed in Results & also to update the signature element.
Other info(My local setup version details):
- Drupal version : 10.1.5
- PHP OS : Linux
- PHP version : 8.2.5
- Drush version : 12.4.1.0
- Webform version: ^6.2@RC
I have working in my local drupal setup its working fine,after adding a signature element to a form, and testing, the signature image is displayed in the Results & also update the signature element.
Other info(my local setup version):
Drupal version : 10.1.5
PHP OS : Linux
PHP version : 8.2.5
Drush version : 12.4.1.0
Webform version: ^6.2@RC