Skip to content
Snippets Groups Projects
Commit aae7cd05 authored by Project-Update-bot's avatar Project-Update-bot
Browse files

Automated Project Update Bot fixes from run 11-121090.

parent 6f3a21fd
No related branches found
No related tags found
1 merge request!1Automated Project Update Bot fixes
......@@ -2,6 +2,6 @@ name: 'External Data Source'
type: module
description: 'External Data Source field Fromatters and Widgets'
package: Field types
core_version_requirement: ^8.8 || ^9 || ^10
core_version_requirement: ^10.1 || ^11
dependencies:
- drupal:field
......@@ -65,7 +65,7 @@ class Countries extends ExternalDataSourceBase {
$data = json_decode($response->getBody()->getContents());
}
catch (GuzzleException $e) {
watchdog_exception('external_data_source', $e->getMessage());
\Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('external_data_source'), $e->getMessage()), fn() => watchdog_exception('external_data_source', $e->getMessage()));
}
return $this->formatResponse($data);
}
......
......@@ -63,7 +63,7 @@ class FranceRegions extends ExternalDataSourceBase {
$data = json_decode($response->getBody()->getContents());
}
catch (GuzzleException $e) {
watchdog_exception('external_data_source', $e->getMessage());
\Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('external_data_source'), $e->getMessage()), fn() => watchdog_exception('external_data_source', $e->getMessage()));
}
return $this->formatResponse($data);
}
......
......@@ -65,7 +65,7 @@ class FranceZipCodes extends ExternalDataSourceBase {
$data = json_decode($response->getBody()->getContents());
}
catch (GuzzleException $e) {
watchdog_exception('external_data_source', $e->getMessage());
\Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.1.0', fn() => \Drupal\Core\Utility\Error::logException(\Drupal::logger('external_data_source'), $e->getMessage()), fn() => watchdog_exception('external_data_source', $e->getMessage()));
}
return $this->formatResponse($data);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment