src/Extension/ExtensibleViewFactory.php
public function createView($object)
    {
        $view = $this->viewFactory->createView($object);

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

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

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

        return $view;
    }
public function createView ( $ object ) { $ view = $ this -> viewFactory -> createView ( $ object ) ; if ( $ view instanceof View ) { $ this -> extend ( $ view , $ object ) ; } return $ view ; }
Create a view for the object.

@param $object

@return View
Create a view for the object .