Refactor Widget to use Doctrine

[MAILPOET-3644]
This commit is contained in:
Pavel Dohnal
2021-09-15 13:09:06 +02:00
committed by Veljko V
parent 19b99b4ff1
commit ca88c96470
3 changed files with 41 additions and 39 deletions

View File

@@ -26,8 +26,8 @@ class Styles {
}
public function renderFormSettingsStyles(FormEntity $form, string $selector, string $displayType): string {
if (!isset($form['settings']) || !is_array($form['settings'])) return '';
$formSettings = $form['settings'];
if (!is_array($form->getSettings())) return '';
$formSettings = $form->getSettings();
// Wrapper styles
$styles = [];