Since: 6.0.0 All methods except `viewAction()` are deprecated and will be removed in the future.
Inheritance: extends Controller
 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);
 }