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 33 "description" : " Page Builder module" ,
44 "require" : {
55 "magento/framework" : " *" ,
6+ "magento/module-eav" : " *" ,
7+ "magento/module-search" : " *" ,
68 "magento/module-store" : " *" ,
79 "magento/module-backend" : " *" ,
810 "magento/module-cms" : " *" ,
Original file line number Diff line number Diff line change 1010use Magento \Framework \DB \DataConverter \DataConverterInterface ;
1111
1212/**
13+ * Class BlueFootToPageBuilder
14+ *
1315 * Convert existing BlueFoot 1.0.* structures into Magento PageBuilder compatible HTML structures. This is ran on first
1416 * install of the new Page Builder module. It will leave any unsupported content in the tree allowing the
1517 * MixedToPageBuilder process this later on.
@@ -46,7 +48,7 @@ public function __construct(
4648 * @param string $value
4749 * @return string
4850 */
49- public function convert ($ value )
51+ public function convert (string $ value )
5052 {
5153 if (preg_match ('/<!-- ' . Format::BLUEFOOT_KEY . '="(.*)"-->/ ' , $ value , $ matches )) {
5254 if ($ this ->validator ->validate ($ matches [1 ])) {
Original file line number Diff line number Diff line change 1010use Magento \Framework \DB \DataConverter \DataConverterInterface ;
1111
1212/**
13+ * Class MixedToPageBuilder
14+ *
1315 * Convert mixed PageBuilder & PageBuilder content to Magento PageBuilder compatible HTML structures, this should be
1416 * utilised for 3rd party extensions outside of core that previously extended PageBuilder's functionality.
1517 */
@@ -45,7 +47,7 @@ public function __construct(
4547 * @param string $value
4648 * @return string
4749 */
48- public function convert ($ value )
50+ public function convert (string $ value )
4951 {
5052 if (strstr ($ value , Format::UNMIGRATED_KEY ) !== false ) {
5153 return $ this ->convertMixed ($ value );
@@ -57,10 +59,10 @@ public function convert($value)
5759 /**
5860 * Convert any instances of un-migrated content to the new format
5961 *
60- * @param $value
62+ * @param string $value
6163 * @return string
6264 */
63- private function convertMixed ($ value )
65+ private function convertMixed (string $ value )
6466 {
6567 /**
6668 * 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 11magento/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