The same as "scope", but having prefix layout.

@param  string $view
@param  array  $args
@param  string $type
@return Theme
498084
public function scopeWithLayout($view, $args = array(), $type = null)
    {
        $view = $this->getLayoutName().'.'.$view;

        return $this->scope($view, $args, $type);
    }
154320
public function renderMenu($slug, $view = 'VinceCmsBundle:Component:menu.html.twig', array $parameters = array())
    {
        /** @var Menu $menu */
        $menu = $this->repositories['menu']->findOneBy(array('slug' => $slug, 'lvl' => 0));
        if (!$menu || !$menu->getChildren()->count() || (!$menu->isPublished() && !$this->security->isGranted('ROLE_ADMIN'))) {
            return;
        }

        return $this->environment->render($view, array_merge(array('menu' => $menu), $parameters));
    }
1219816
public function tryTemplate($dir, $template, $view)
    {
        $dir = rtrim($dir, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.'templates';

        if (is_readable($dir.DIRECTORY_SEPARATOR.$template) && is_file($dir.DIRECTORY_SEPARATOR.$template)) {
            if (isset($view)) {
                $view->setTemplatesDirectory($dir);
            }

            return $template;
        }
    }
1090503
public function render(string $view = null, array $params = null): \Illuminate\Contracts\Support\Renderable
    {
        $view = $view ? $view : 'column.treeControl';
        $params = $params ? $params : $this->toArray();

        return GridView::view($view, $params);
    }
1100750
public function partialWithLayout($view, $args = array())
    {
        $view = $this->getLayoutName().'.'.$view;

        return $this->partial($view, $args);
    }
963143
public function buildView(FormView $view, FormInterface $form, array $options) {
        if(isset($options['ad_component_addon'])) {
            switch ($options['ad_component_addon']) {
                case 'pre':
                case 'post':
                    $addons=[$options['ad_component_addon']];
                    break;
                case 'both':
                    $addons=['pre','post'];
                    break;
                default:
                    throw new LogicException('Valor "'.$options['ad_component_addon'].'" parámetro "ad_component_addon" no válido. Valores permitidos: pre|post|both');
            }
            foreach ($addons as $addon) {
                $view->vars['ad_component_addon_type_'.$addon] = is_array($options['ad_component_addon_type']) ?
                    (isset($options['ad_component_addon_type'][$addon]) ? $options['ad_component_addon_type'][$addon] : null) :
                    $options['ad_component_addon_type'];
                if(is_null($view->vars['ad_component_addon_type_'.$addon])){
                    throw new LogicException('Falta parámetro "ad_component_addon_type" para "'.$addon.'" addon');
                }
                elseif(!in_array($view->vars['ad_component_addon_type_'.$addon], ['text','button','icon'])){
                    throw new LogicException('Valor "'.$view->vars['ad_component_addon_type_'.$addon].'" parámetro "ad_component_addon_type" para "'.$addon.'" addon no válido. Valores permitidos: text|button|icon');
                }

                $view->vars['ad_component_addon_content_type_'.$addon] = is_array($options['ad_component_addon_content_type']) ?
                    (isset($options['ad_component_addon_content_type'][$addon]) ? $options['ad_component_addon_content_type'][$addon] : null) :
                    $options['ad_component_addon_content_type'];
                if($view->vars['ad_component_addon_type_'.$addon]=='button') {
                    if(is_null($view->vars['ad_component_addon_content_type_'.$addon])) {
                        throw new LogicException('Falta Parámetro "ad_component_addon_content_type" para "' . $addon . '" addon');
                    }
                    elseif(!in_array($view->vars['ad_component_addon_content_type_'.$addon], ['text','icon'])) {
                        throw new LogicException('Valor "'.$view->vars['ad_component_addon_content_type_'.$addon].'" parámetro "ad_component_addon_content_type" para "'.$addon.'" addon no válido. Valores permitidos: text|icon');
                    }
                }

                $view->vars['ad_component_addon_content_'.$addon] = is_array($options['ad_component_addon_content']) ?
                    (isset($options['ad_component_addon_content'][$addon]) ? $options['ad_component_addon_content'][$addon] : null) :
                    $options['ad_component_addon_content'];
                if(is_null($view->vars['ad_component_addon_content_'.$addon])){
                    throw new LogicException('Falta Parámetro "ad_component_addon_content" para "'.$addon.'" addon');
                }

                $view->vars['ad_component_addon_attr_'.$addon] = isset($options['ad_component_addon_attr']) ?
                    (isset($options['ad_component_addon_attr'][$addon]) ? $options['ad_component_addon_attr'][$addon] : $options['ad_component_addon_attr']) :
                    array();
            }
        }
    }
1140292
public <V extends TextView> void setTypeface(V view, String typefaceName) {
		Typeface typeface = mCache.get(typefaceName);
		view.setTypeface(typeface);
	}
8830
public function buildView(FormView $view, FormInterface $form, array $options)
    {
        $view->vars['configs'] = $options['configs']; 
        
        // Adds a custom block prefix
        array_splice(
            $view->vars['block_prefixes'],
            array_search($this->getName(), $view->vars['block_prefixes']),
            0,
            'thrace_select2'
        );
    }
504173
public function get( $view, $params = array() )
	{
		$template = preg_replace( '/\./', '/', $view );

		$theme_path =  get_template_directory() . '/views/' . $template . '.php';

		$plugin_path = $this->views_path . $template . '.php';

		$path = is_readable( $theme_path )
			? $theme_path
			: ( is_readable( $plugin_path )
				? $plugin_path
				: null
			);

		if ( ! empty( $path ) ) {
			extract( $params );
			ob_start();
			include( $path );
			return ob_get_clean();
		} else {
			return;
		}
	}
792323
public function render($view = null, $data = array())
    {
        if (is_null($view)) {
            $view = static::$defaultView;
        }

        $data = array_merge($data, array(
            'paginator' => $this,
            'elements'  => $this->elements(),
        ));

        return new HtmlString(
            static::viewFactory()->make($view, $data)->render()
        );
    }
167271
public void registerView(final String type, final Pair<View, View> view) {
        registeredViews.put(type, view);
    }
1276721
public function render(string $view, array $params = []): string
    {
        return $this->make($view, $params)->render();
    }
405887
public function buildView(FormView $view, FormInterface $form, array $options)
    {
        $layouts = array();
        foreach ($options['layoutConfigs'] as $layout) {
            $layouts[$layout->getId()] = $layout;
        }
        $view->vars['layoutConfigs'] = $layouts;
    }
1048343
protected function generateView($view, $data = [])
    {
        if(is_null($this->viewPath)) {
            return $view;
        }

        $twig = new Twig_Environment(
            new Twig_Loader_Filesystem(realpath($this->viewPath))
        );

        return $twig->render($view, $data);
    }
521505
protected function makeView($view)
    {
        if( Auth::check() ) {
            $this->addParameter( 'activeUser', Auth::user() );
        }

        return View::make( $view, $this->parameters );
    }
1321611
private function setFormTheme(FormView $formView, $theme)
    {
        $twig = $this->get('twig');

        // BC for Symfony < 3.2 where this runtime does not exists
        if (!method_exists('Symfony\Bridge\Twig\AppVariable', 'getToken')) {
            $twig->getExtension('Symfony\Bridge\Twig\Extension\FormExtension')
                ->renderer->setTheme($formView, $theme);

            return;
        }

        // BC for Symfony < 3.4 where runtime should be TwigRenderer
        if (!method_exists('Symfony\Bridge\Twig\Command\DebugCommand', 'getLoaderPaths')) {
            $twig->getRuntime('Symfony\Bridge\Twig\Form\TwigRenderer')->setTheme($formView, $theme);

            return;
        }

        $twig->getRuntime('Symfony\Component\Form\FormRenderer')->setTheme($formView, $theme);
    }
940809
public function make($view, array $data = array(), $type = 'default')
    {
        if ($this->credentials->check()) {
            if ($type === 'admin') {
                if ($this->credentials->hasAccess('admin')) {
                    $data['site_name'] = 'Admin Panel';
                    $data['navigation'] = $this->navigation->getHTML('admin', 'admin', array('title' => $data['site_name'], 'side' => $this->credentials->getUser()->email, 'inverse' => $this->inverse));
                } else {
                    $data['site_name'] = $this->name;
                    $data['navigation'] = $this->navigation->getHTML('default', 'default', array('title' => $data['site_name'], 'side' => $this->credentials->getUser()->email, 'inverse' => $this->inverse));
                }
            } else {
                $data['site_name'] = $this->name;
                $data['navigation'] = $this->navigation->getHTML('default', 'default', array('title' => $data['site_name'], 'side' => $this->credentials->getUser()->email, 'inverse' => $this->inverse));
            }
        } else {
            $data['site_name'] = $this->name;
            $data['navigation'] = $this->navigation->getHTML('default', false, array('title' => $data['site_name'], 'inverse' => $this->inverse));
        }

        return parent::make($view, $data);
    }