(BC Break) Change shallow+deep formats to begin with an array of elements
authorTim Otten <totten@civicrm.org>
Sat, 26 Oct 2019 00:14:30 +0000 (17:14 -0700)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:19 +0000 (19:13 -0700)
commitf800b0461083e09328da8cc5e2b2443a5874998a
tree650559ea3c4272f2ab73a4c452cef999147f6d70
parent3b729d0cbdbec3d47693401a3dd8493e42648c72
(BC Break) Change shallow+deep formats to begin with an array of elements

Before: In the shallow+deep representations of `layout`, the root array
has a `#tag` and `#children`.

After: The root array is just list a list of children.

Comment: This is a more accufrate representation of how HTML partials are
often written.
ext/afform/core/CRM/Afform/ArrayHtml.php
ext/afform/core/Civi/Afform/FormDataModel.php
ext/afform/core/Civi/Api4/Utils/AfformFormatTrait.php
ext/afform/mock/tests/phpunit/api/v4/AfformTest.php
ext/afform/mock/tests/phpunit/api/v4/formatExamples/apple.php
ext/afform/mock/tests/phpunit/api/v4/formatExamples/banana.php
ext/afform/mock/tests/phpunit/api/v4/formatExamples/cherry.php [new file with mode: 0644]
ext/afform/mock/tests/phpunit/api/v4/formatExamples/empty.php [new file with mode: 0644]
ext/afform/mock/tests/phpunit/api/v4/formatExamples/string.php [new file with mode: 0644]