public function configurePageTypePublishTargetFromImport($txml) { $configuration = new AllConfiguration($this); $formFactor = (string) $txml['form-factor']; if ($formFactor) { $configuration->setSelectorFormFactor($formFactor); } return $configuration; }
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; }