File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed
PageBuilderDataMigration/Setup/DataConverter
dev/tests/static/testsuite/Magento/Test/Integrity/_files/blacklist Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 3
3
"description" : " Page Builder module" ,
4
4
"require" : {
5
5
"magento/framework" : " *" ,
6
+ "magento/module-eav" : " *" ,
7
+ "magento/module-search" : " *" ,
6
8
"magento/module-store" : " *" ,
7
9
"magento/module-backend" : " *" ,
8
10
"magento/module-cms" : " *" ,
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \DB \DataConverter \DataConverterInterface ;
11
11
12
12
/**
13
+ * Class BlueFootToPageBuilder
14
+ *
13
15
* Convert existing BlueFoot 1.0.* structures into Magento PageBuilder compatible HTML structures. This is ran on first
14
16
* install of the new Page Builder module. It will leave any unsupported content in the tree allowing the
15
17
* MixedToPageBuilder process this later on.
@@ -46,7 +48,7 @@ public function __construct(
46
48
* @param string $value
47
49
* @return string
48
50
*/
49
- public function convert ($ value )
51
+ public function convert (string $ value )
50
52
{
51
53
if (preg_match ('/<!-- ' . Format::BLUEFOOT_KEY . '="(.*)"-->/ ' , $ value , $ matches )) {
52
54
if ($ this ->validator ->validate ($ matches [1 ])) {
Original file line number Diff line number Diff line change 10
10
use Magento \Framework \DB \DataConverter \DataConverterInterface ;
11
11
12
12
/**
13
+ * Class MixedToPageBuilder
14
+ *
13
15
* Convert mixed PageBuilder & PageBuilder content to Magento PageBuilder compatible HTML structures, this should be
14
16
* utilised for 3rd party extensions outside of core that previously extended PageBuilder's functionality.
15
17
*/
@@ -45,7 +47,7 @@ public function __construct(
45
47
* @param string $value
46
48
* @return string
47
49
*/
48
- public function convert ($ value )
50
+ public function convert (string $ value )
49
51
{
50
52
if (strstr ($ value , Format::UNMIGRATED_KEY ) !== false ) {
51
53
return $ this ->convertMixed ($ value );
@@ -57,10 +59,10 @@ public function convert($value)
57
59
/**
58
60
* Convert any instances of un-migrated content to the new format
59
61
*
60
- * @param $value
62
+ * @param string $value
61
63
* @return string
62
64
*/
63
- private function convertMixed ($ value )
65
+ private function convertMixed (string $ value )
64
66
{
65
67
/**
66
68
* Match all instances of any un-migrated content within the value argument. This will automatically retrieve
Original file line number Diff line number Diff line change 1
1
magento/module-page-builder
2
- magento/module-page-builder-analytics
2
+ magento/module-page-builder-analytics
3
+ magento/module-page-builder-data-migration
You can’t perform that action at this time.
0 commit comments