11# OS2Web Data lookup [ ![ Build Status] ( https://travis-ci.org/OS2web/os2web_datalookup.svg?branch=8.x )] ( https://travis-ci.org/OS2web/os2web_datalookup )
2+
23## Install
34
4- OS2Web Data lookup provides integration with Danish data lookup services such as Service platformen or Datafordeler.
5- Module is available to download via composer.
6- ```
5+ OS2Web Data lookup provides integration with Danish data lookup services such as
6+ Service platformen or Datafordeler. Module is available to download via
7+ composer.
8+
9+ ``` shell
710composer require os2web/os2web_datalookup
811drush en os2web_datalookup
912```
1013
1114## Update
12- Updating process for OS2Web Data lookup module is similar to usual Drupal 8 module.
13- Use Composer's built-in command for listing packages that have updates available:
1415
15- ```
16+ Updating process for OS2Web Data lookup module is similar to the usual Drupal 8
17+ module. Use Composer's built-in command for listing packages that have updates
18+ available:
19+
20+ ``` shell
1621composer outdated os2web/os2web_datalookup
1722```
1823
1924## Automated testing and code quality
25+
2026See [ OS2Web testing and CI information] ( https://github.com/OS2Web/docs#testing-and-ci )
2127
2228## Contribution
2329
2430Project is opened for new features and os course bugfixes.
25- If you have any suggestion or you found a bug in project, you are very welcome
26- to create an issue in github repository issue tracker.
27- For issue description there is expected that you will provide clear and
28- sufficient information about your feature request or bug report.
31+ If you have any suggestion, or you found a bug in project, you are very welcome
32+ to create an issue in GitHub repository issue tracker. For issue description,
33+ there is expected that you will provide clear and sufficient information about
34+ your feature request or bug report.
2935
3036### Code review policy
37+
3138See [ OS2Web code review policy] ( https://github.com/OS2Web/docs#code-review )
3239
3340### Git name convention
41+
3442See [ OS2Web git name convention] ( https://github.com/OS2Web/docs#git-guideline )
3543
3644### Using services in other modules
3745
38- ```
46+ ``` php
3947// CVR lookup
4048/** @var \Drupal\os2web_datalookup\Plugin\DataLookupManager $pluginManager */
4149$pluginManager = \Drupal::service('plugin.manager.os2web_datalookup');
42- /** @var \Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupInterfaceCompany $cvrPlugin */
50+ /** @var \Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupCompanyInterface $cvrPlugin */
4351$cvrPlugin = $pluginManager->createDefaultInstanceByGroup('cvr_lookup');
4452
4553if ($cvrPlugin->isReady()) {
@@ -49,7 +57,7 @@ if ($cvrPlugin->isReady()) {
4957// CPR lookup.
5058/** @var \Drupal\os2web_datalookup\Plugin\DataLookupManager $pluginManager */
5159$pluginManager = \Drupal::service('plugin.manager.os2web_datalookup');
52- /** @var \Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupInterfaceCpr $cprPlugin */
60+ /** @var \Drupal\os2web_datalookup\Plugin\os2web\DataLookup\DataLookupCprInterface $cprPlugin */
5361$cprPlugin = $pluginManager->createDefaultInstanceByGroup('cpr_lookup');
5462
5563if ($cprPlugin->isReady()) {
@@ -68,22 +76,25 @@ if ($cprPlugin->isReady()) {
6876
6977### Datafordeler integration (https://datafordeler.dk)
7078
71- In scope of os2forms project already implemented light integration
72- with Danmarks Adresseregister (DAR) via fetching data for form elements
73- autocomplete. See [ os2forms_dawa submodule] ( https://github.com/OS2Forms/os2forms )
79+ In the scope of os2forms project already implemented light integration with
80+ Danmarks Adresseregister (DAR) via fetching data for form elements autocomplete.
81+
82+ See [ os2forms_dawa submodule] ( https://github.com/OS2Forms/os2forms )
7483
7584As soon as it is clear how the integration is going to be used, then
76- os2forms_dawa will be refactored to OS2Web Data lookup plugin plugin .
85+ os2forms_dawa will be refactored to OS2Web Data lookup plugin.
7786
7887## Important notes
88+
7989### Serviceplatformen plugins
80- Settings for CPR and CVR serviceplantormen plugins are storing as configuration
81- in db and will(could) be exported as ` yml ` file via Drupal configuration
82- management system. And afterwards could be tracked by ` git ` .
8390
84- If case you have public access to your git repository all setting from plugins
91+ Settings for CPR and CVR serviceplatformen plugins are storing as configuration
92+ in db and will(could) be exported as ` yml ` file via Drupal's configuration
93+ management system. And afterward could be tracked by ` git ` .
94+
95+ If case you have public access to your git repository, all settings from plugins
8596will be exposed for third persons.
8697
87- To avoid/prevent this behavior we recommend use ` Config ignore ` module, where
88- you can add all settings you do not want to export/import via configuration
98+ To avoid/prevent this behavior, we recommend use ` Config ignore ` module, where
99+ you can add all settings you do not want to export/import via the configuration
89100management system.
0 commit comments