Remove default form
[MAILPOET-3238]
This commit is contained in:
committed by
Veljko V
parent
5d20056e28
commit
0bbe65fab7
@@ -44,20 +44,6 @@ class FormFactory {
|
||||
return $this->createFormFromTemplate(TemplateRepository::INITIAL_FORM_TEMPLATE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $defaultSegmentId
|
||||
* @return FormEntity|null
|
||||
*/
|
||||
public function ensureDefaultFormExists(int $defaultSegmentId) {
|
||||
if ($this->formRepository->count()) {
|
||||
return null;
|
||||
}
|
||||
return $this->createFormFromTemplate(
|
||||
TemplateRepository::DEFAULT_FORM_TEMPLATE,
|
||||
['segments' => [(string)$defaultSegmentId]]
|
||||
);
|
||||
}
|
||||
|
||||
private function getDefaultSuccessMessage() {
|
||||
if ($this->settings->get('signup_confirmation.enabled')) {
|
||||
return __('Check your inbox or spam folder to confirm your subscription.', 'mailpoet');
|
||||
|
Reference in New Issue
Block a user