Move Template Selection to a separate page

[MAILPOET-2987]
This commit is contained in:
Pavel Dohnal
2020-06-23 11:15:18 +02:00
committed by Veljko V
parent dcbb0d9381
commit 565da8b52e
5 changed files with 37 additions and 14 deletions

View File

@ -5,6 +5,10 @@ namespace MailPoet\Form;
use MailPoet\Models\Form;
class FormFactory {
/**
* @param array $template
* @return Form
*/
public function createFormFromTemplate(array $template) {
if (isset($template['id'])) {
unset($template['id']);