| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class BlockRenderer implements BlockRendererInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var ThemeFactoryInterface |
||
| 14 | */ |
||
| 15 | private $themeFactory; |
||
| 16 | /** |
||
| 17 | * @var ContextMergerInterface |
||
| 18 | */ |
||
| 19 | private $contextMerger; |
||
| 20 | |||
| 21 | public function __construct(ThemeFactoryInterface $themeFactory, ContextMergerInterface $contextMerger = null) |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * Renders a block. |
||
| 30 | * |
||
| 31 | * @param BlockInterface $page |
||
| 32 | * @param mixed[] $additionalContext |
||
| 33 | * @return StreamInterface |
||
| 34 | */ |
||
| 35 | public function renderBlock(BlockInterface $page, array $additionalContext = []): StreamInterface |
||
| 44 |