eZ\Publish\Core\MVC\Symfony\Controller\PageController::viewBlockById PHP Method

viewBlockById() public method

This method can be used with ESI rendering strategy.
public viewBlockById ( mixed $id, array $params = [], array $cacheSettings = [] ) : Response
$id mixed Block id
$params array
$cacheSettings array settings for the HTTP cache, 'smax-age' and 'max-age' are checked.
return Symfony\Component\HttpFoundation\Response
    public function viewBlockById($id, array $params = array(), array $cacheSettings = array())
    {
        return $this->viewBlock($this->pageService->loadBlock($id), $params, $cacheSettings);
    }