Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
with_attributes.php
Go to the documentation of this file.
1 <?php
6 return [
7  'root' => [
8  [
9  'node_one' => [
10  [
11  '__attributes__' => ['attributeOne' => '10', 'attributeTwo' => '20'],
12  'subnode' => [
13  ['__attributes__' => ['attributeThree' => '30'], '__content__' => 'Value1'],
14  ['__attributes__' => ['attributeFour' => '40']],
15  ],
16  'books' => [['__attributes__' => ['attributeFive' => '50']]],
17  ],
18  ],
19  ],
20  ]
21 ];