Currently, we need to wrap top-level non-column blocks into a single column. This is done in the preprocessor. [MAILPOET-5540]
20 lines
407 B
PHP
20 lines
407 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace MailPoet\EmailEditor\Engine\Renderer;
|
|
|
|
class BodyRenderer {
|
|
|
|
/** @var BlocksRenderer */
|
|
private $blocksRenderer;
|
|
|
|
public function __construct(
|
|
BlocksRenderer $blocksRenderer
|
|
) {
|
|
$this->blocksRenderer = $blocksRenderer;
|
|
}
|
|
|
|
public function renderBody(array $parsedBlocks): string {
|
|
return $this->blocksRenderer->render($parsedBlocks);
|
|
}
|
|
}
|