File tree Expand file tree Collapse file tree 4 files changed +16
-26
lines changed
app/code/Magento/PageBuilder Expand file tree Collapse file tree 4 files changed +16
-26
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ class Document implements DocumentInterface
23
23
/**
24
24
* @var ObjectManagerInterface
25
25
*/
26
- private $ objectManager ;
26
+ protected $ objectManager ;
27
27
28
28
/**
29
29
* @var GtDomDocument
30
30
*/
31
- private $ document ;
31
+ protected $ document ;
32
32
33
33
/**
34
34
* Document constructor.
@@ -41,7 +41,6 @@ public function __construct(
41
41
) {
42
42
$ this ->objectManager = $ objectManager ;
43
43
$ this ->document = $ this ->objectManager ->create (GtDomDocument::class, [ 'document ' => $ document ]);
44
- $ this ->document ->createDocumentFragment ();
45
44
}
46
45
47
46
/**
Original file line number Diff line number Diff line change 9
9
10
10
use Gt \Dom \HTMLDocument as GtDomHTMLDocument ;
11
11
use Magento \Framework \ObjectManagerInterface ;
12
- use Magento \PageBuilder \Model \Dom \Adapter \ElementInterface ;
13
12
use Magento \PageBuilder \Model \Dom \Adapter \HtmlCollectionInterface ;
14
13
use Magento \PageBuilder \Model \Dom \Adapter \HtmlDocumentInterface ;
15
14
18
17
*/
19
18
class HtmlDocument extends Document implements HtmlDocumentInterface
20
19
{
21
- /**
22
- * @var ObjectManagerInterface
23
- */
24
- private $ objectManager ;
25
-
26
- /**
27
- * @var GtDomHTMLDocument
28
- */
29
- private $ document ;
30
-
31
20
/**
32
21
* HtmlDocument constructor.
33
22
* @param ObjectManagerInterface $objectManager
@@ -37,7 +26,7 @@ public function __construct(
37
26
ObjectManagerInterface $ objectManager ,
38
27
string $ document = ""
39
28
) {
40
- $ this -> objectManager = $ objectManager ;
29
+ parent :: __construct ( $ objectManager, $ document ) ;
41
30
$ this ->document = $ this ->objectManager ->create (GtDomHTMLDocument::class, [ 'document ' => $ document ]);
42
31
}
43
32
Original file line number Diff line number Diff line change 16
16
*/
17
17
class XmlDocument extends Document implements XmlDocumentInterface
18
18
{
19
- /**
20
- * @var ObjectManagerInterface
21
- */
22
- private $ objectManager ;
23
-
24
- /**
25
- * @var GtDomXmlDocument
26
- */
27
- private $ document ;
28
-
29
19
/**
30
20
* XmlDocument constructor.
31
21
*
@@ -36,7 +26,7 @@ public function __construct(
36
26
ObjectManagerInterface $ objectManager ,
37
27
string $ document = ""
38
28
) {
39
- $ this -> objectManager = $ objectManager ;
29
+ parent :: __construct ( $ objectManager, $ document ) ;
40
30
$ this ->document = $ this ->objectManager ->create (GtDomXmlDocument::class, [ 'document ' => $ document ]);
41
31
}
42
32
}
Original file line number Diff line number Diff line change 295
295
<item name =" content" xsi : type =" boolean" >true</item >
296
296
</item >
297
297
</item >
298
+ <item name =" catalog_category_entity_text" xsi : type =" array" >
299
+ <item name =" identifier" xsi : type =" string" >attribute_id</item >
300
+ <item name =" fields" xsi : type =" array" >
301
+ <item name =" value" xsi : type =" boolean" >true</item >
302
+ </item >
303
+ </item >
304
+ <item name =" catalog_product_entity_text" xsi : type =" array" >
305
+ <item name =" identifier" xsi : type =" string" >attribute_id</item >
306
+ <item name =" fields" xsi : type =" array" >
307
+ <item name =" value" xsi : type =" boolean" >true</item >
308
+ </item >
309
+ </item >
298
310
</argument >
299
311
</arguments >
300
312
</type >
You can’t perform that action at this time.
0 commit comments