Commit 661a185a authored by Project Update Bot's avatar Project Update Bot Committed by Andrii Podanenko
Browse files

Issue #3297767 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent 8ac5581e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
name: Open Y Google Translate
type: module
description: Provides a Google Translate integration for Open Y.
core_version_requirement: ^8 || ^9
core_version_requirement: ^9.3 || ^10
version: 8.x-2.0
package: Open Y
+3 −3
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ function openy_gtranslate_update_8001() {
 */
function openy_gtranslate_update_8002() {
  if (\Drupal::service('theme_handler')->themeExists('openy_carnation')) {
    $config = drupal_get_path('theme', 'openy_carnation') . '/config/optional';
    $config = \Drupal::service('extension.list.theme')->getPath('openy_carnation') . '/config/optional';
    /** @var Drupal\openy_upgrade_tool\ConfigParamUpgradeTool $config_importer */
    $config_importer = \Drupal::service('openy_upgrade_tool.importer');
    $config_importer->setDirectory($config);
@@ -45,7 +45,7 @@ function openy_gtranslate_update_8002() {
  }

  if (\Drupal::service('theme_handler')->themeExists('openy_lily')) {
    $config = drupal_get_path('theme', 'openy_lily') . '/config/optional';
    $config = \Drupal::service('extension.list.theme')->getPath('openy_lily') . '/config/optional';
    /** @var Drupal\openy_upgrade_tool\ConfigParamUpgradeTool $config_importer */
    $config_importer = \Drupal::service('openy_upgrade_tool.importer');
    $config_importer->setDirectory($config);
@@ -55,7 +55,7 @@ function openy_gtranslate_update_8002() {
  }

  if (\Drupal::service('theme_handler')->themeExists('openy_rose')) {
    $config = drupal_get_path('theme', 'openy_rose') . '/config/optional';
    $config = \Drupal::service('extension.list.theme')->getPath('openy_rose') . '/config/optional';
    /** @var Drupal\openy_upgrade_tool\ConfigParamUpgradeTool $config_importer */
    $config_importer = \Drupal::service('openy_upgrade_tool.importer');
    $config_importer->setDirectory($config);