/** * Returns a html with all blocks for the area. * * @param $area * @return mixed */ public function getBlocks($area) { $areaBlocks = $this->getDesktopBlockByArea($area); if (is_null($areaBlocks)) { return; } return $areaBlocks->map(function (Block $block, $key) { // each block $html = new Html($block); return $html->getDesktopHtml(); })->implode(''); }