Add form block wrapper renderer

[MAILPOET-2746]
This commit is contained in:
Rostislav Wolny
2020-03-12 15:14:42 +01:00
committed by Veljko V
parent 6c9d24a6ed
commit 65afeca59e
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?php
namespace MailPoet\Form;
use MailPoet\Models\Form;
class BlockWrapperRenderer {
public function render(array $block, string $blockContent): string {
return '<div class="mailpoet_paragraph">' . $blockContent . '</div>';
}
}