public function createView($object)
    {
        $view = $this->viewFactory->createView($object);

        if ($view instanceof View) {
            $this->extend($view, $object);
        }

        return $view;
    }