Example #1
0
 public function configurePageTypePublishTargetFromImport($txml)
 {
     $configuration = new AllConfiguration($this);
     $formFactor = (string) $txml['form-factor'];
     if ($formFactor) {
         $configuration->setSelectorFormFactor($formFactor);
     }
     $path = (string) $txml['path'];
     if ($path) {
         $c = \Page::getByPath($path);
         $configuration->setStartingPointPageID($c->getCollectionID());
     }
     return $configuration;
 }