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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
208af9fe
Commit
208af9fe
authored
Feb 14, 2012
by
Daniel Kudwien
Committed by
Greg Dunlap
Feb 16, 2012
Browse files
Options
Downloads
Patches
Plain Diff
Chainable config()->set().
parent
eb9954ac
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/lib/Drupal/Core/Config/DrupalConfig.php
+1
-0
1 addition, 0 deletions
core/lib/Drupal/Core/Config/DrupalConfig.php
core/modules/config/config.test
+3
-2
3 additions, 2 deletions
core/modules/config/config.test
with
4 additions
and
2 deletions
core/lib/Drupal/Core/Config/DrupalConfig.php
+
1
−
0
View file @
208af9fe
...
...
@@ -123,6 +123,7 @@ public function set($key, $value) {
else
{
drupal_array_set_nested_value
(
$this
->
data
,
$parts
,
$value
);
}
return
$this
;
}
public
function
castValue
(
$value
)
{
...
...
This diff is collapsed.
Click to expand it.
core/modules/config/config.test
+
3
−
2
View file @
208af9fe
...
...
@@ -147,11 +147,12 @@ class ConfigFileContentTestCase extends DrupalWebTestCase {
$this
->
assertIdentical
(
$db_config
,
FALSE
);
$this
->
assertFalse
(
file_exists
(
$config_dir
.
'/'
.
$name
.
'.'
.
$this
->
fileExtension
));
// Chainable ->set()->save()
// Attempt to delete non-existing configuration.
// Write and read an array value.
// Add an array value to a nested key.
// Type casting into string.
// Type casting into string.
(recursively)
// NULL value behavior.
// List config names by prefix.
// List config names by prefix.
(and without prefix)
}
}
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