Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
geocoder
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
geocoder
Commits
253510f0
Commit
253510f0
authored
11 months ago
by
Ankit Pathak
Browse files
Options
Downloads
Patches
Plain Diff
Minor change.
parent
89efbd54
No related branches found
No related tags found
1 merge request
!54
Automated Project Update Bot fixes from run 11-188815.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/SettingsForm.php
+5
-6
5 additions, 6 deletions
src/Form/SettingsForm.php
with
5 additions
and
6 deletions
src/Form/SettingsForm.php
+
5
−
6
View file @
253510f0
...
...
@@ -2,11 +2,8 @@
namespace
Drupal\geocoder\Form
;
use
Drupal\Core\Config\ConfigFactoryInterface
;
use
Drupal\Core\Config\TypedConfigManagerInterface
;
use
Drupal\Core\Form\ConfigFormBase
;
use
Drupal\Core\Form\FormStateInterface
;
use
Symfony\Component\DependencyInjection\ContainerInterface
;
/**
* The geocoder settings form.
...
...
@@ -32,15 +29,17 @@ class SettingsForm extends ConfigFormBase {
*/
public
function
buildForm
(
array
$form
,
FormStateInterface
$form_state
)
{
$config
=
$this
->
config
(
'geocoder.settings'
);
// Checking the typedConfigManager - property exists in ConfigFormBase.
if
(
property_exists
(
ConfigFormBase
::
class
,
'typedConfigManager'
))
{
$geocoder_config_schema
=
$this
->
typedConfigManager
->
getDefinition
(
'geocoder.settings'
)
+
[
'mapping'
=>
[]];
}
else
{
// Handling backward compatiblity before D10.2
// Calling typedConfigManager() of ConfigFormBase class.
$geocoder_config_schema
=
$this
->
typedConfigManager
();
// Calling typedConfigManager() of ConfigFormBase class.
$typedConfigManager
=
$this
->
typedConfigManager
();
$geocoder_config_schema
=
$typedConfigManager
->
getDefinition
(
'geocoder.settings'
)
+
[
'mapping'
=>
[]];
}
$geocoder_config_schema
=
$geocoder_config_schema
[
'mapping'
];
// Attach Geofield Map Library.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment