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.
By default, SimpleXML returns an array for a blank tag like
<site_information></site_information>
This is not very intuitive, and it should return an empty string. It means we can not use an empty array as a return value from the config system, but I don't know how we would represent an empty array in XML anyways.
Comments
Comment #1
acrollet CreditAttribution: acrollet commentedpatch attached.
Comment #2
acrollet CreditAttribution: acrollet commentedsetting issue status.
Comment #3
gddI like this patch, I would just like to see a comment added that the explicitly explains that we have to do this at all is because of SimpleXML's default behavior of returning an array instead of a string.
Comment #4
acrollet CreditAttribution: acrollet commentedComment added, patch attached.
Comment #5
gddIf this comes back green then its good to go.
Comment #7
acrollet CreditAttribution: acrollet commentedpatch attached with modifications to image to account for new code, tests run fine locally. *fingers crossed*
Comment #8
acrollet CreditAttribution: acrollet commentedComment #9
gddSweeet
Comment #10
Dries CreditAttribution: Dries commentedCommitted to 8.x. Great job. :)
Comment #11.0
(not verified) CreditAttribution: commentedUpdated issue summary.