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.
setSetting('default_value') => setDefaultValue()
Comment | File | Size | Author |
---|---|---|---|
#5 | menu-2324825-5-test-only.patch | 1.45 KB | jibran |
#4 | menu-2324825-4.patch | 3.88 KB | dawehner |
#3 | Add menu link Site Install.png | 68.93 KB | Berdir |
#1 | menu-link-defaults-2324825-1.patch | 2.43 KB | Berdir |
Comments
Comment #1
BerdirHere is a patch. I don't think we need to set explicit defaults for things like an empty description. and title is required, so pointless to have an empty default value.
Comment #2
pwolanin CreditAttribution: pwolanin commentedoops, thanks. Should figure out why tests are not catching this
Comment #3
BerdirAdd form, without default values.
Comment #4
dawehnerAdded some proper test coverage here.
Comment #5
jibranAdding test only patch. To show the fails.
Comment #7
jibranThanks for the patch and tests @Berdir and @dawehner
Comment #8
webchickCommitted and pushed to 8.x. Thanks!