Caffeinated\Themes\Themes::view PHP Method

view() public method

Render theme view file.
public view ( string $view, array $data = [] ) : View
$view string
$data array
return View
    public function view($view, $data = array())
    {
        if (!is_null($this->layout)) {
            $data['theme_layout'] = $this->getLayout();
        }
        return $this->viewFactory->make($this->getView($view), $data);
    }