Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!5163
Issue
#3342489
: Add default value for mail_notification in site.system config
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3342489
: Add default value for mail_notification in site.system config
issue/drupal-3342489:3342489-add-default-value
into
11.x
Overview
2
Commits
17
Pipelines
10
Changes
7
2 unresolved threads
Hide all comments
Open
Kostia Bohach
requested to merge
issue/drupal-3342489:3342489-add-default-value
into
11.x
1 year ago
Overview
2
Commits
17
Pipelines
10
Changes
1
2 unresolved threads
Hide all comments
Expand
Closes
#3342489
0
0
Merge request reports
Compare
11.x
version 9
9ce35f2a
1 year ago
version 8
67e06662
1 year ago
version 7
e104773e
1 year ago
version 6
c1129ee4
1 year ago
version 5
7a3a2e42
1 year ago
version 4
b1903189
1 year ago
version 3
3a66138c
1 year ago
version 2
cd6ed2c2
1 year ago
version 1
9cd95fb3
1 year ago
11.x (HEAD)
and
latest version
latest version
5809698e
17 commits,
1 year ago
version 9
9ce35f2a
16 commits,
1 year ago
version 8
67e06662
15 commits,
1 year ago
version 7
e104773e
14 commits,
1 year ago
version 6
c1129ee4
5 commits,
1 year ago
version 5
7a3a2e42
8 commits,
1 year ago
version 4
b1903189
6 commits,
1 year ago
version 3
3a66138c
4 commits,
1 year ago
version 2
cd6ed2c2
2 commits,
1 year ago
version 1
9cd95fb3
1 commit,
1 year ago
1 file
+
11
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/modules/system/system.post_update.php
+
11
−
0
Options
@@ -123,3 +123,14 @@ function system_post_update_convert_empty_description_entity_form_modes_to_null(
});
}
/**
* Adds default value for the mail_notification config parameter.
*/
function
system_post_update_mail_notification_setting
()
{
$config
=
\Drupal
::
configFactory
()
->
getEditable
(
'system.site'
);
// If the value doesn't exist it always returns NULL.
if
(
is_null
(
$config
->
get
(
'mail_notification'
)))
{
$config
->
set
(
'mail_notification'
,
NULL
)
->
save
();
}
}
Loading