public function migrateCkeditorBlocks()
    {
        $legacyBlocks = $this->getLegacyCkeditorBlocks();

        foreach ($legacyBlocks as $legacyBlock) {
            $legacyBlock->setType('cms.block.ckeditor');

            $settings = $legacyBlock->getSettings();

            if (isset($settings['contenu'])) {
                $settings['content'] = $settings['contenu'];
                unset($settings['contenu']);
            }

            $legacyBlock->setSettings($settings);

            $this->blockManager->save($legacyBlock);
        }
    }
public function migrateCkeditorBlocks()
    {
        $legacyBlocks = $this->getLegacyCkeditorBlocks();

        foreach ($legacyBlocks as $legacyBlock) {
            $legacyBlock->setType('cms.block.ckeditor');

            $settings = $legacyBlock->getSettings();

            if (isset($settings['contenu'])) {
                $settings['content'] = $settings['contenu'];
                unset($settings['contenu']);
            }

            $legacyBlock->setSettings($settings);

            $this->blockManager->save($legacyBlock);
        }
    }
public function migrateCkeditorBlocks ( ) { $ legacyBlocks = $ this -> getLegacyCkeditorBlocks ( ) ; foreach ( $ legacyBlocks as $ legacyBlock ) { $ legacyBlock -> setType ( 'cms.block.ckeditor' ) ; $ settings = $ legacyBlock -> getSettings ( ) ; if ( isset ( $ settings [ 'contenu' ] ) ) { $ settings [ 'content' ] = $ settings [ 'contenu' ] ; unset ( $ settings [ 'contenu' ] ) ; } $ legacyBlock -> setSettings ( $ settings ) ; $ this -> blockManager -> save ( $ legacyBlock ) ; } }
Function of migration of included blocks.
Function of migration of included blocks .