Files
piratepoet/mailpoet/lib/EmailEditor/Engine/Renderer/BodyRenderer.php
Rostislav Wolny 968ff6754e Add blocks preprocessor
Currently, we need to wrap top-level non-column blocks into a single
column. This is done in the preprocessor.

[MAILPOET-5540]
2023-09-21 14:20:35 +02:00

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);
}
}