} // prepare form data for view
$formData =
[ 'id' =>
(string) $form->
getId(), // intended string cast to keep compatibility
'active' =>
$form->
getActive(),
'name' =>
$form->
getName(),
'text' =>
$form->
getText(),
'text2' =>
$form->
getText2(),
'email' =>
$form->
getEmail(),
'email_template' =>
$form->
getEmailTemplate(),
'email_subject' =>
$form->
getEmailSubject(),
'metaTitle' =>
$form->
getMetaTitle(),
'metaDescription' =>
$form->
getMetaDescription(),
'metaKeywords' =>
$form->
getMetaKeywords(),
'attribute' =>
$attributeArray,
];
return array_merge($formData,
[ 'sErrors' =>
$this->_errors,
'sElements' =>
$this->_elements,
'sFields' =>
$fields,