viewBlock() public method

Render the block.
public viewBlock ( Block $block, array $params = [], array $cacheSettings = [] ) : Response
$block eZ\Publish\Core\FieldType\Page\Parts\Block
$params array
$cacheSettings array settings for the HTTP cache, 'smax-age' and 'max-age' are checked.
return Symfony\Component\HttpFoundation\Response
 public function viewBlock(Block $block, array $params = array(), array $cacheSettings = array())
 {
     // Inject valid items as ContentInfo objects if possible.
     if ($this->pageService instanceof CoreBundlePageService) {
         $params += array('valid_contentinfo_items' => $this->pageService->getValidBlockItemsAsContentInfo($block));
     }
     return parent::viewBlock($block, $params, $cacheSettings);
 }