Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
So
$config.get("foo.bar.baz.quux");
becomes
$config['foo']['bar']['baz']['quux'];
// OR
$config['foo.bar.baz.quux'];
Comment | File | Size | Author |
---|---|---|---|
#8 | drupal-cmi_shortcuts-1812764-8.patch | 2.55 KB | Gaelan |
#3 | drupal-cmi_shortcuts-1812764-3.patch | 2.55 KB | Gaelan |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedplease no.
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedNot much interest. Folks can reopen with an implementation.
Comment #3
Gaelan CreditAttribution: Gaelan commentedPatch. Decided to use ArrayAccess after all. Gives us these:
Comment #4
Gaelan CreditAttribution: Gaelan commentedWhoops…
Comment #5.0
(not verified) CreditAttribution: commentedFormatting fix
Comment #5.1
Gaelan CreditAttribution: Gaelan commentedUpdated issue summary for ArrayAccess.
Comment #6
Gaelan CreditAttribution: Gaelan commentedThis code shouldn't do anything that prevents installation…
#3: drupal-cmi_shortcuts-1812764-3.patch queued for re-testing.
Comment #8
Gaelan CreditAttribution: Gaelan commentedForgot a backslash. Was looking for
Drupal\\Core\\Config\\ArrayAccess
. Nope, not there.Comment #9
gddWhat's the use case for doing this? We've made explicit decisions to move away from array-centric APIs, and I don't see a lot of value in hiding our nice new API behind old pretending they still exist.
Comment #10
Gaelan CreditAttribution: Gaelan commentedAh. Didn't know about these decisions. Marking as won't fix.
Comment #10.0
Gaelan CreditAttribution: Gaelan commentedUpdated issue summary.