/**
  * Migrates content from FCE to Grid Element
  *
  * @param array $formdata
  * @return void
  */
 public function migrateFceAction($formdata)
 {
     $this->sharedHelper->setUnlimitedTimeout();
     $fce = $formdata['fce'];
     $ge = $formdata['ge'];
     if ($this->sharedHelper->canBeInterpretedAsInteger($ge)) {
         $ge = (int) $ge;
         if ($ge <= 0) {
             $ge = 0;
         }
     }
     $fcesConverted = 0;
     $contentElementsUpdated = 0;
     if ($fce > 0 && !empty($ge)) {
         $contentElements = $this->migrateFceHelper->getContentElementsByFce($fce);
         foreach ($contentElements as $contentElement) {
             $fcesConverted++;
             $this->migrateFceHelper->migrateFceFlexformContentToGe($contentElement, $ge);
             // Migrate content to GridElement columns (if available)
             $contentElementsUpdated += $this->migrateFceHelper->migrateContentElementsForFce($contentElement, $formdata);
         }
         if ($formdata['markdeleted']) {
             $this->migrateFceHelper->markFceDeleted($fce);
         }
     }
     $this->view->assign('contentElementsUpdated', $contentElementsUpdated);
     $this->view->assign('fcesConverted', $fcesConverted);
 }