Skip to content
Snippets Groups Projects
Unverified Commit 28e7af06 authored by Project Update Bot's avatar Project Update Bot Committed by Lucas Hedding
Browse files

Issue #3290064 by Project Update Bot, heddn: Automated Drupal 10 compatibility fixes

parent d32e37a8
No related branches found
No related tags found
No related merge requests found
......@@ -227,7 +227,7 @@ class CrowdinTranslator extends TranslatorPluginBase implements ContainerFactory
'@source' => $job_item->getSourceLabel(),
':source_url' => $job_item->getSourceUrl()
? $job_item->getSourceUrl()->toString()
: (string)$job_item->getJob()->toUrl()
: $job_item->getJob()->toUrl()->toString()
]
);
} catch (TMGMTException $e) {
......@@ -236,7 +236,7 @@ class CrowdinTranslator extends TranslatorPluginBase implements ContainerFactory
[
'@source' => $job_item->getSourceLabel(),
':source_url' => $job_item->getSourceUrl() ? $job_item->getSourceUrl()->toString()
: (string)$job_item->getJob()->toUrl(),
: $job_item->getJob()->toUrl()->toString(),
'@error' => $e->getMessage(),
],
'error'
......
......@@ -3,8 +3,7 @@ type: module
description: 'Crowdin plugin to localize Drupal websites.'
package: 'Translation Management'
author: Crowdin
core: 8.x
core_version_requirement: ^8 || ^9
core_version_requirement: ^8 || ^9 || ^10
dependencies:
- drupal:tmgmt
- drupal:tmgmt_file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment