Skip to content

Commit 7bd98b6

Browse files
committed
OS2FORMS-358 CVR default plugin
1 parent 783244f commit 7bd98b6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

os2web_datalookup.install

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ function os2web_datalookup_update_9001() {
1010
$config->set("cpr_lookup.default_plugin", 'serviceplatformen_cpr_extended');
1111
$config->save();
1212
}
13+
14+
/**
15+
* Setting "datafordeler_cvr" as default CVR lookup plugin.
16+
*/
17+
function os2web_datalookup_update_9002() {
18+
$config = \Drupal::service('config.factory')->getEditable(DataLookupPluginGroupSettingsForm::$configName);
19+
$config->set("cvr_lookup.default_plugin", 'datafordeler_cvr');
20+
$config->save();
21+
}

src/Plugin/os2web/DataLookup/DatafordelerCVR.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
use Drupal\os2web_datalookup\LookupResult\CvrLookupResult;
99
use GuzzleHttp\Client;
1010
use GuzzleHttp\Exception\ClientException;
11-
use GuzzleHttp\HandlerStack;
12-
use GuzzleHttp\Middleware;
13-
use Psr\Http\Message\RequestInterface;
1411

1512
/**
1613
* Defines a plugin for DatafordelerCVR.

0 commit comments

Comments
 (0)