Get current form view.

@param   null|string $view
@return  null
765381
protected function _getFormView($view = null)
    {
        if (empty($view) && Arr::in($this->request->getParam('action'), $this->_formActions)) {
            $view = $this->_findViewByRequest();
        }

        return $view;
    }
857280
function hasViewResult( $view = '' )
    {
        if ( $view == '' )
            $view = $this->currentView();
        return isset( $this->ViewResult[$view] );
    }
199097
@Nullable static View getView(Context context, int resourceId, View view) {
    LayoutInflater inflater = LayoutInflater.from(context);
    if (view != null) {
      return view;
    }
    if (resourceId != INVALID) {
      view = inflater.inflate(resourceId, null);
    }
    return view;
  }
334027
public function setView(\Zend_View_Interface $view = null)
    {
        $element = parent::setView($view);
        if (null !== $view) {
            if (false === $view->getPluginLoader('helper')->getPaths('Gems_JQuery_View_Helper')) {
                $view->addHelperPath('Gems/JQuery/View/Helper', 'Gems_JQuery_View_Helper');
            }
        }
        return $element;
    }
1098133
protected function _find_view($view)
    {
        //edit view string : example view1.view2....
        $view = str_replace('.', '/', $view);
        // Default location
        $full_path = APPPATH . 'views/' . $view . $this->blade_ext;
        // Modular Separation / Modular Extensions has been detected
        if (method_exists($this->router, 'fetch_module')) {
            $module = $this->router->fetch_module();
            list($path, $_view) = Modules::find($view . $this->blade_ext, $module, 'views/');
            if ($path) {
                $full_path = $path . $_view;
            }
        }
        // File not found
        if (!is_file($full_path)) {
            show_error('[Blade] Unable to find view: ' . $view);
        }

        return $full_path;
    }
168421
public function view($view)
    {
        return $this->display(function ($value) use ($view) {
            $model = $this;

            return view($view, compact('model', 'value'))->render();
        });
    }
1122325
public function setViewPath($view)
    {
        $this->layout->layout = $this->viewPath->setUp($this->layout->layout, $view);

        return $this;
    }
126555
public function getView(View $view)
    {
        if (!$view instanceof ContentValueView) {
            return null;
        }

        $viewType = $view->getViewType();
        $contentInfo = $view->getContent()->contentInfo;

        $legacyKernel = $this->getLegacyKernel();
        $legacyContentClosure = function (array $params) use ($contentInfo, $viewType, $legacyKernel) {
            return $legacyKernel->runCallback(
                function () use ($contentInfo, $viewType, $params) {
                    $tpl = eZTemplate::factory();
                    /**
                     * @var \eZObjectForwarder
                     */
                    $funcObject = $tpl->fetchFunctionObject('content_view_gui');
                    if (!$funcObject) {
                        return '';
                    }

                    // Used by XmlText field type
                    if (isset($params['objectParameters'])) {
                        if (isset($params['linkParameters']) && $params['linkParameters'] !== null) {
                            $linkParameters = $params['linkParameters'];
                        }
                        $tpl->setVariable('object_parameters', $params['objectParameters'], 'ContentView');
                    }
                    // Used by RichText field type
                    elseif (isset($params['embedParams'])) {
                        if (isset($params['embedParams']['link'])) {
                            $linkParameters = $params['embedParams']['link'];
                        }

                        if (isset($params['embedParams']['config'])) {
                            $tpl->setVariable('object_parameters', $params['embedParams']['config'], 'ContentView');
                        }
                    }

                    // Convert link parameters to Legacy Stack format
                    if (isset($linkParameters)) {
                        $tpl->setVariable(
                            'link_parameters',
                            $this->legalizeLinkParameters($linkParameters),
                            'ContentView'
                        );
                    }

                    $children = [];
                    $funcObject->process(
                        $tpl, $children, 'content_view_gui', false,
                        [
                            'content_object' => [
                                [
                                    eZTemplate::TYPE_ARRAY,
                                    // eZTemplate::TYPE_OBJECT does not exist because
                                    // it's not possible to create "inline" objects in
                                    // legacy template engine (ie objects are always
                                    // stored in a tpl variable).
                                    // TYPE_ARRAY is used here to allow to directly
                                    // retrieve the object without creating a variable.
                                    // (TYPE_STRING, TYPE_BOOLEAN, ... have the same
                                    // behaviour, see eZTemplate::elementValue())
                                    eZContentObject::fetch($contentInfo->id),
                                ],
                            ],
                            'view' => [
                                [
                                    eZTemplate::TYPE_STRING,
                                    $viewType,
                                ],
                            ],
                        ],
                        [], '', ''
                    );
                    if (\is_array($children) && isset($children[0])) {
                        return ezpEvent::getInstance()->filter('response/output', $children[0]);
                    }

                    return '';
                },
                false
            );
        };

        $this->decorator->setContentView(
            new ContentView($legacyContentClosure)
        );

        return $this->decorator;
    }
866946
protected function populateView($view)
    {
        $view = $this->initViewVars($view);
        $view = $this->initViewContentBlocks($view);

        return $view;
    }
417134
private function getResponse(View $view)
    {
        return $this->templateEngine->renderResponse($this->template, $view->getParams());
    }
910001
public function getViewPath($view)
    {
        if ($this->finder) {
            if (file_exists($file = $this->finder->find($view))) {
                return $file;
            }
        }

        if (file_exists($view)) {
            return $view;
        } elseif (file_exists($view . '.' . $this->extension)) {
            return $view . '.' . $this->extension;
        }

        foreach ($this->viewPaths as $viewPath) {
            if (file_exists($viewPath . '/' . $view . '.' . $this->extension)) {
                return $viewPath . '/' . $view . '.' . $this->extension;
            }
        }

        return null;
    }
173604
public function render($view = null)
    {
        if (is_null($view)) {
            $view = config('navigation.view.badge', 'navigation::badge');
        }

        return view($view, $this->toArray());
    }
1098155
protected View getView(String viewName) {
        for (View view: solo.getCurrentViews()) {
            if (view.toString().contains(viewName)) {
                return view;
            }
        }

        return null;
    }
569365
public function getActivityFormTypeOptions($view = 'default')
    {
        $options['view'] = $this->view = $view;
        $options['bundle_name'] = $this->parameters['bundle_name'];
        $options['module_identifier'] = $this->parameters['module_identifier'];
        if (isset($this->parameters['hooks_options'])) {
            $options['hooks_options'] = $this->parameters['hooks_options'];
        }
        if($this->handler->hasContent($this->view)) {
            $options['content_forms'] = $this->getContentFormTypesOptions();
        }
        $options['campaign'] = $this->campaign;

        return $options;
    }
138183
public function render(Zend_View_Interface $view = null)
	{
        $formTypes = array( // avaible form types of Twitter Bootstrap form (i.e. classes)
          'horizontal',
          'inline',
          'vertical',
          'search'
        );
        
        $set = false;
        
        foreach($formTypes as $type) {
            if($this->getAttrib($type)) {
                $this->addDecorator("Form", array("class" => "form-$type"));
                $set = true;
            } 
        }
        if(true !== $set) { // if neither type was set, we set the default vertical class
            $this->addDecorator("Form", array("class" => "form-vertical"));
        }

		return parent::render($view);
	}
1084897
public function compose(View $view)
    {
        if ($this->overwriteDisabled($view)) {
            return $view;
        }

        $this->currentPath = collect(explode('/views/', $view->getPath()))->last();

        if (\View::exists($this->getNewView())) {
            $view->setPath($this->getNewPath());
        }

        return $view;
    }
109680
public function view($view = null)
    {
        if (empty($view)) {
            return $this->getConfig('view') ?: $this->_request()->getParam('action');
        }

        return $this->setConfig('view', $view);
    }